Hi,
I''m using GDBG and persis my state of a grid, including all of the grid column width and header text, is it correct using Model.SaveBinary and GridModel.LoadBinary methods to approach?
AD
Administrator
Syncfusion Team
November 20, 2005 07:23 PM UTC
These methods only work for a GridControl.
Here is a forum thread on one way to persist column order and size in a GridDataBoundGrid.
http://www.syncfusion.com/Support/forums/message.aspx?MessageID=3918
KL
Ken Lee
November 21, 2005 05:57 PM UTC
Thanks Clay Burch, That''s work fine GridBoundColumn serialization. How about the GridBoundColumn for HiddenColumn? My target wants to save the user display/hidden column state , have any idea ? Thanks
AD
Administrator
Syncfusion Team
November 21, 2005 06:22 PM UTC
If you hide/show columns by removing or inserting them in the GridBoundColumns collections, then serializing that collection should be enough. But if you are using something else to hide/show columns, then you would have to serialize that collections as well. One simple thing might be to create a bool[dataTable.Columns.Count] object that holds whether the column is visible or not, and then serialize this array in addition the the otehr information.
KL
Ken Lee
November 21, 2005 07:11 PM UTC
That''s done by your point, Thanks