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

Hide fields/data on certain rows only in grid

(0) ShareShare
ReportReport
Posted on by 95

I have a grid that lists contact information. A custom field has been added to mark if the current address is known to be invalid on the table level. The customer wants a checkbox that will remove invalid addresses from the grid. I cannot filter on the query because that will remove the entire records where the address is invalid. The requirement is for the record to still be there but just the address fields be blank. I tried modifying the datasource but that removed the data from the table which I don't want, I want the data to remain but simply not be visible in the grid in this circumstance.

Example: 

Here we would want to see rows for Contacts1, 2, and 3 but for Contact2 want the Street and City fields to be blank or hidden. The data should remain in the table but not be visible in this grid. 

Name Street City isValid
Contact1 123 1st St City1 yes
Contact2 234 2nd St City2 no
Contact3 456 3rd t City3 yes

Ideally this would be quickly toggleable with the checkbox. I believe I could hide the entire field by setting the column to hidden visibility, but that is too much, I want similar functionality on the cell record, so it can be implemented on a row by row basis.

Is there any simple way to do this?

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi nayshIB,

    Do you have two tables storing the information? Or is it one table with contact information and addresses being stored together?

  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    You might be able to change the font color or cell background color by using displayOption method. But otherwise, really hiding the cells is not possible.

    Another option is to use display methods to populate those fields on the grid. And have the display method return empty value for invalid addresses.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans