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.
Unfortunately, activation email could not send to your email. Please try again.

Serialize/Deserialize BoundGrid Columns

Thread ID:





6594 Aug 19,2003 09:37 AM Aug 19,2003 11:25 AM Windows Forms 1
Tags: GridControl
scot adams
Asked On August 19, 2003 09:37 AM

In my project, I'm using the example 2862.sln for saving the column widths in a boundgrid. It appears not to work, but when I comment out the lines this.gridDataBoundGrid1.BeginUpdate() and the corresponding .EndUpdate(), the columns resize, but is extremely slow (the grid contains 15 columns and 1400 rows). Any ideas? Also, is there a similar way I can save grid state for columns that are hidden, and columns that have been moved/reordered?

Administrator [Syncfusion]
Replied On August 19, 2003 11:25 AM

Make sure you are setting grid.AllowResizeToFit = false to turn off the grid's autosizing code that could step on your explicit sizing. As far a serializing out the column order, the GridBoundColumn names serialization shoul dahndle that. But, as far as hidden columns goes, there is no dictionary object for use with those values. If you want to serialize them, you would have to use your own array similar to how the GridBoundColumn names are done in that sample.


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.

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.