This is a migrated thread and some comments may be shown as answers.

Need to cancel selection when clicking on RowDetails

1 Answer 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 24 Mar 2017, 08:32 AM

Hi,

I am using Mutliple selection mode along with RowDetails. And expanded the RowDetails manually using GridViewRow.MouseDoubleClick event. While clicking on DetailsPresenter the selection process is triggered automatically. Is there any option to cancel the selection when clicking on DetailsPresenter?

 

Thanks,

Antony

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 28 Mar 2017, 04:23 PM
Hello Antony,

I'm unsure about your exact setup, however, you could handle the SelectionChanging event and cancel it once a specific condition is met. Through the SelectionChangingEventArgs you can get ahold of the OriginalSource which I believe you would find useful as well as set its Cancel property to True.

If you need any additional help with implementing this, please share more details on your scenario and I will gladly assist you further.

Regards,
Dilyan Traykov
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Antony
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or