Skip to main content
Suggested answer

Loop through grid fields in Ax 2012 in RUNTIME

editSubscribe (0) ShareShare
Posted on by 15


I need logic to loop through columns(fields) in grid in runtime.

Something similar to this AX 2012: Loop through all the fields of a table in X++ - Dynamics 365 Finance Community  but in runtime.

For example if grid data source has 5 columns and 3 are removed in UI, i want to loop just through these 2 that are left in the grid. So my question is how to get grid fields in runtime( not from datasource table) ?

Thank you.