Hello,
when i call StringToColumnStates
for example with a button and alway read the same string, the grid show
random column order and fields every time i push it. Is it possible to
read the columnstates only on form create for one time?
I want to implement that users can create different views of grid and change them on runtime and also use AdvGridColumnPicker.
i played with the values and found out that it has to do with order of the columns :
for example
the ini String has order: 0,1,3,2
Push Button StringToColumnStates
The Grid display order: 0,1,2,3
Push again Button read same string:
The Grid display order: 0,1,3,2
Push again: 0,1,2,3 and so on.
Every time i do StringToColumnStates the order of the columns turn from default to string order and back.
So i fixed it by doing 2 times StringToColumnStates. Then it is correct.
Do you initialize the column order with grid.SetColumnOrder as explained / demonstrated in this article: