AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
266 stars 54 forks source link

Make it possible to disable sorting of a column by the user #186

Open Developer-Alexander opened 1 year ago

Developer-Alexander commented 1 year ago

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.

xLEGiON commented 12 months ago

In the TextColumn constructor, you can provide a TextColumnOptions instance. This has a "CanUserSortColumn" boolean property which can be set.