I have a RadGridView control on my form bound to a collection in my ViewModel. When I add a new item to my collection, it does show the item in the grid, but it’s always placed at the end and not respecting the current sort. Does anybody know how to fix this?
Thanks!
If using a
ObservableCollectionsolves your problem when a new item is added you could use theCellEditEndedevent to reset the sorting on the grid.You can subscribe to the event in code or the xaml; take a look at CellEditEnded documentation. In the handler you could then unset the sorting and then set it again.
I have not tried this with the telerik components only with a WPF
DataGrid.