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. C#
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. Sample Links: |
This page will automatically be redirected to the sign-in page in 10 seconds.