Replies: 1 comment 1 reply
-
How is the second DataGrid defined? If the columns are auto-generated it's likely that changing the ItemsSource is causing the DataGrid to regenerate the columns, which would remove the sort as the appropriate column no longer exists. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently have two
DataGrid
, the main DataGrid feeds the second DataGrid using itSelectedItem.AnCollection
.Works fine, however if user sorts the column the sort is lost after set a new
ItemSource
(Become the default unsorted grid).This is annoying because user have to re-sort every time he changes the selection in main grid.
Is this a bug or it's intended?
I tried to use code to keep track of last sort, which I can but not of the sort direction...
Beta Was this translation helpful? Give feedback.
All reactions