Microsoft Dynamics 365 Blog

You might have seen this before in the Dynamics AX 2009 Client, that if you open a transaction Form like CustTransOpen the very first row is displayed quickly, however all other rows of the Grid are shown after a significant time. In between the Dynamics AX 2009 Client is unresponsive (frozen).

The reason for this situation is the automatic sizing that happens for columns on the Grid. Actually this automatic sizing happens by default for all Grids however you only notice the negative effect when the DataSource contains a lot of records and / or some columns are filled by DataMethods.

This issue was first reported for the table browser, and for this also a fix was created that is included in the Rollup 2. The Kernel fix basically introduces the possibility to turn the automatic sizing off, by adding a new Kernel method autoSizeColumns to the Grid.

This fix alone does however not solve the issue on the individual Forms, because the automatic sizing is by default still turned on, so you need to manually disable automatic sizing on the affected Forms where you suffer from this feature.

To turn the automatic sizing of you first need to turn the property “AutoDeclaration” of the affected Grid to “Yes”. Then you can use the following X++ code for example in the Init method of the Form:



–author: Thomas Treen
–editor: Alexander Lachner
–date: 12/07/2010

We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!