I want not to completely cancel a SelectionChanging event in the GridView but instead just modify AddedItems (remove some of them that are not fitting to the previously selected items). It should look like a normal selection via drag and drop, just with some unselected items in beetween.
To achieve your requirement you can use the SelectionChanged event of RadGridView. In the event handler you can check what elements from the e.AddedItems collection should not be selected and remove them from the SelectedItems collection of RadGridView. For example:
You can check this approach shown in the attached project. I hope this helps.
Regards,
Martin Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.