This is a .NET MAUI application that uses SfDataGrid.
I let user to drag and resize columns.
How can I store the last column state so that they see the same grid layout when they open the app next time.
I tried to serialise DataGrid.Columns and save into preferences (which seems to work), however deserialisation fails with an error:
Could not create an instance of type Syncfusion.Maui.DataGrid.DataGridColumn. Type is an interface or abstract class and cannot be instantiated. Path '[0].GroupModeProperty', line 1, position 22.
I am using newtonsoft's json serialiser.
What is the recommended way to preserve column states?
Many thanks,
Ali