We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SaveBinary and LoadBinary

Thread ID:





37336 Nov 20,2005 07:17 PM UTC Nov 21,2005 07:11 PM UTC WinForms 4
Tags: GridControl
Ken Lee
Asked On November 20, 2005 07:17 PM UTC

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?

Administrator [Syncfusion]
Replied On 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

Ken Lee
Replied On 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

Administrator [Syncfusion]
Replied On 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.

Ken Lee
Replied On November 21, 2005 07:11 PM UTC

That''s done by your point, Thanks


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon