Generally, if the IsSynchronizedWithCurrentItem
property of RadGridView is set to "False"(this is the default value), deleting the selected item directly from the source collection will leave the control without a selected item. You can try explicitly setting the property to false and check how this works for you.
If you need the property to be true, you can work with the CollectionChanged
event of your ItemsSource collection:
var collection = (
collection.CollectionChanged += collection_CollectionChanged;
sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
// work with grid`s selected item
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.