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

Notifications

Announcements

No record found.

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)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

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

  • jkmajcen Profile Picture
    45 on at

    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.

  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans