Avalonia.Controls.TreeDataGrid
Avalonia.Controls.TreeDataGrid copied to clipboard
Make it possible to disable sorting of a column by the user
Maybe I am not familiar enough with this control but I did not find a way to disable sorting so that the user is not allowed to sort. It would be great to have something like a "CanSort" property per control or per column.
This might become an issue as sorting has a massive impact on the performance. Especially when the source collection is updated very frequently.
In the TextColumn constructor, you can provide a TextColumnOptions instance. This has a "CanUserSortColumn" boolean property which can be set.