Hi, May I know how to save syncfusion grid data control column headers as a string into database after drag and drop the columns. And then, I logout my application. After login, I would like to retrieve the columns header strings that is saved from database and show the sequence of the columns headers in grid.
ANAshok N Syncfusion Team November 25, 2014 02:05 PM UTC
Thank you for contacting Syncfusion support.
We have analyzed your query and you can achieve your
requirement by using Serialization and Deserialization support. You can save
the changes by using dataGrid.Model.Serialize method and you can reload that
changes by using dataGrid.Model.Deserialize method. Please refer the below code
snippet to achieve your requirement.
In this code snippet we have serialize the grid using Button
click event. You can use this Serialize method to your application, where you
want to serialize the grid and for
reloading, you can handle datagrid.Loaded event, within this event you can call