BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Juraj,
We analyzed your query. Initially you can save the column order before reordering the columns.
Please refer the following code snippet
Code Snippet:
Initially you can saving the column by using “this.dataGrid.Columns.ToList();”
public partial class MainWindow : ChromelessWindow { public MainWindow() { InitializeComponent(); this.dataGrid.Columns.ToList(); } } |
Regards,
Farjana Parveen A
Hi Juraj,
Sorry about the inconvenienced caused.
We analyzed your query. You can’t able to set the column property directly. You can load the saved column order by clearing the reorder and adding the saved column order.
Please refer the following code snippet and sample in the following location:
Code Snippet:
public List<GridColumn> columns; public MainWindow() { InitializeComponent(); columns = sfdatagrid.Columns.ToList(); }
private void Button_Click(object sender, RoutedEventArgs e) { sfdatagrid.Columns.Clear(); foreach (GridColumn grid in columns) { sfdatagrid.Columns.Add(grid); } } |
Regards,
Farjana Parveen A