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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How can I hide a row from Form Grid in x++?

(0) ShareShare
ReportReport
Posted on by 226
I have a form with multiple fields and one enum field. Now i want to hide the rows if the rows contains  specific enum value  e.g. /True/.I have tried it in my Forms data source active method but its hiding columns visibility.
any suggestions?
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at
    Hi Junaid,
     
    I think you want to filter the record based on the Enum value.
    In that case you need to add range to the executeQuery method of the form DataSource.
    You can refer to the below blog for adding Enum not equal to value in the query range.
     
    Thanks,
    Girish S.
  • GirishS Profile Picture
    27,833 Moderator on at
    Moving the thread to D365 FO forum - Next time you post please take care of it.
     
    Thanks,
    Girish S.
  • Martin Dráb Profile Picture
    238,789 Most Valuable Professional on at
    If you always want to hide such records, apply the filter the filter just once, in data source's init() method.
     
    executeQuery() is run every time when the query executes, e.g. when a user sorts the grid. Executing the logic every time is unnecessary, and it may lead to bugs (when a new range is added every time, instead of keeping the single one).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 521 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 438

#3
Adis Profile Picture

Adis 261 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans