Blazor(ise) DataGrid iterate through DataGridColumns in code (behind)

Solution 1:

The latest version of Blazorise has a sort mode:

<DataGrid ... Sortable="true" SortMode="DataGridSortMode.Multiple" ...

https://blazorise.com/docs/helpers/enums/datagrid

If that's not exactly what you are looking for, ask Mladen on gitter or check out the source code here.