I have a ultragrid embedded in a control and I need to persist the column sizes. The problem is "AfterColPosChanged" is called on control load event and on actual resizing, so the change was reverted on control reload. What I need to do is to load the grid sizes if it's a control reload, and save the sizes if it's an actual resizing. How do I do this? Thanks.
Hi,
I'm not sure I understand what you are asking.
What I would do is use the Save and Load methods on the grid's DisplayLayout. Save when the dialog closes and load when it opens. There's no reason to save every time the user makes a change.
I have a init method that loads everything on the control including the grid, and the afterColPosChanged is called every time in the init method. I don't know if this is expected behavior. I need to make the distinction between form load and column resize.