Hi there
I answered a similar issue in this forum post: https://forum.mendix.com/link/space/widgets/questions/130339
The methodology is a bit cumbersome, but if you do not want to lose the current configuration of the users (so not just setting the attribute to empty), it is the only way I am aware of as of now.
Hope this helps!
I can confirm this issue:
Seemingly the configuration is stored using the Caption of each column.
When you change the Caption, or translate the Caption, or add a column as Colin mentioned, you get this error when the Datagrid2 is rendered: "Invalid columns state: invalid columns order Error: Invalid columns state: invalid columns order"
As a workaround, we created an admin function to delete the configurations, to be executed after a change in the column Captions.
Would be more elegant if the Datagrid2 would detect this change or catch the error and reset it automatically.
Hi Colin,
Wow, great question. You can delete the string that is configured here: https://docs.mendix.com/appstore/modules/data-grid-2/#9-configuration after each time you update the number of attributes.
Another option would be to change the string.
Go Make It