The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
ADAdministrator 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
KLKen LeeNovember 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
ADAdministrator 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.