Hello Everyone
i have a requirement that make column dynamically based on selected data
let us assume i have a filter multi select for inventlocations and if i select 3 the grid will contain 3 columns if i select 5 the grid will contain 5 columns
how can i reach my requirements i need a code to do that ?
thanks in advance
Moved from Dynamics AX forum.
A grid is not a very good tool for this task. But if you set an upper limit for the number of columns, like ten, you can create a table with such a number of fields and hide those that you don't need at runtime.
You'll make your life easier if you follow normal F&O GUI design patterns.
Hi Martin,
its for form Grid control in D365fo
What do you want to do it with the data? If it's for reporting purpose, the Matrix control in a report would be the easiest option.
Which version of AX is it about? You don't have the same options in all versions.
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156