web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Best way to remove a grid column from a stock form?

(0) ShareShare
ReportReport
Posted on by 45

I have a column backed by a display method on the SalesTableListPage. The column was added by an ISV. What is the most cleanly way to remove the column entirely making sure that the display method does not fire? Thanks!

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    235,243 Most Valuable Professional on at
    RE: Best way to remove a grid column from a stock form?

    I think that the display method won't be called if nothing needs to get the value for displaying. You can easily test the assumption, e.g. by putting a breakpoint to the display method and debugging the form.

  • jkmajcen Profile Picture
    45 on at
    RE: Best way to remove a grid column from a stock form?

    Hey Martin. I already had a CoC extension for the form so I'm currently removing the column by calling formRun.design().removeControl(formControl.Id()); in the form init(). Does the job. I'm taking this approach thinking it would completely remove the column vs maybe just a visibility hiding per the the visible property. I'm not sure what the visible property is doing under the hood.

  • Martin Dráb Profile Picture
    235,243 Most Valuable Professional on at
    RE: Best way to remove a grid column from a stock form?

    Which options are you considering? I can think of a single one only: setting Visible property of the column to No.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans