How to set the column index from the code?

Hi,

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.

Thanks,

Ori


1 Reply

JJ Jisha Joy Syncfusion Team 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\7.1.0.21\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.

Regards,
Jisha




Loader.
Up arrow icon