SfDataGrid allows you to set back the initial columns order after reordering the columns by saving the initial columns order while initializing. You can restore the initial order whenever required.
The following code example demonstrates how to restore the initial columns order in a button click.
Here the initial columns order is stored in a list. When you click the Restore button, the Columns in the DataGrid is cleared by using the Clear method. Then the columns stored in the list are added back to the DataGrid.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:|
or the page will be automatically redirected to sign-in page in 10 seconds.