How to set default sort for DataGrid #13417
-
|
I can't figure out how to set the default sort column and direction in the DataGrid. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
thevortexcloud
Oct 28, 2023
Replies: 1 comment 5 replies
-
|
There is an example here on how to use https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog/Pages/DataGridPage.xaml.cs |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
AArnott
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an example here on how to use
DataGridCollectionViewto do what you want.https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog/Pages/DataGridPage.xaml.cs
.