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, ...
Suggested Answer

Grid column sequence change dynamically

(0) ShareShare
ReportReport
Posted on by 35

Hi,

I have requirement to change grid column sequence according to the selection from dropdown.

Ex. I have 4 value in dropdown. If value 1 selected then display record in grid. 

Then if value 2 selected then some of the field should not be present and some of the column sequence need to be changed. 

Column visibility can be set by code. But I am not getting to arrange the sequence dynamically.

Currently I am using multiple grid and making it visible according to selection value from dropdown but that doesn't seem correct way to do if more values in dropdown exist.

Could anyone suggest, something that can be implemented here?

Thanks,

POOJA

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You can't sequence the existing columns dynamically. But you can create columns dynamically, perhaps that helps?

    Or, have many columns that point to the same data field, and set one of them visible, based on the selection in the dropbox.

    Remember that the user can also rearrange the columns, in which case your code could produce strange results.

  • Suggested answer
    Community Member Profile Picture
    on at

    You can predefine several formats you want under admin's account and then swith it with user's selection in code dynamically.

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 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans