Is there a way to tell a datagrid to re-sort from c#.
I'd like to do something like grid.Sort("by field").ThenSort("by second field")
It seems the only way to sort a data grid is to sort the datasource. That is not what I am trying to do.
Is there a way to tell a datagrid to re-sort from c#.
I'd like to do something like grid.Sort("by field").ThenSort("by second field")
It seems the only way to sort a data grid is to sort the datasource. That is not what I am trying to do.
You need to either sort the data bound to the DataGrid or use the grid sorting API:
The Code example for Blazor DataGrid Sort API (Edit Source) is currently only a comment in the OnSort procedure in the example. Is that intended?
The example shows how to sort a column and subscribe to Sort event.