Search code examples
formslabelaxaptax++dynamics-ax-2012

How to set position columns Grid by alphabetic Label order in Form?


how to set position columns in form dynamics ax by alphabetic Label order ?

I have a Grid in my Form, I want to set the colums position Grid , I think to set this with code x++ in Form Init method, but I don't know how to do.

Thanks for help,

enjoy!


Solution

  • You have to add fields manually with the addDataField method on the FormBuildGridControl.

    You can see an example in \Classes\SysTableBrowser\showAllFields