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

How to set the column index from the code?

Thread ID:





79093 Jan 20,2009 03:24 PM UTC Jan 23,2009 06:58 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 20, 2009 03:24 PM UTC


I wonder if there is a way to set the column index/position of GridDataBoundGrid?

I'm saving the columns order to an xml file and when the application is loading up i want to set them up the same way they were order before the application was closed.

I'll appreciate if anyone can send me a code sample how to do this.



Jisha Joy [Syncfusion]
Replied On January 23, 2009 06:58 AM UTC

Hi Ori,

The desired behavior can be achieved by serialization and deserialization concept. Please refer the sample in the following location in the sample browser that is shipped with our products.

..\\My Documents\Syncfusion\EssentialStudio\\Windows\Grid.Windows\Samples\2.0\Serialization\Serialize DBG Demo\cs

This sample will show you how to serialize and deserialize the grids schema information using a Binary serialization. Serialization is the process of saving the state of an object by converting it into a stream of bytes. The reverse process of serialization is deserialization.



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

This page will automatically be redirected to the 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