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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Serialize/Deserialize BoundGrid Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

6594 Aug 19,2003 01:37 PM UTC Aug 19,2003 03:25 PM UTC WinForms 1
loading
Tags: GridControl
scot adams
Asked On August 19, 2003 01:37 PM UTC

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 03:25 PM UTC

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.

CONFIRMATION

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.

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

;