We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

right click in selected rows GridDataControl

Thread ID:





104292 Jul 9,2012 05:21 AM UTC Jul 10,2012 07:11 AM UTC WPF 1
Tags: GridControl
Rich Fabros
Asked On July 9, 2012 05:21 AM UTC


I'm using Syncfusion v 9.404.0.62.

With the GridDataControl multiple row selection, right clicking inside the selected rows deselects everything else except the row I clicked on?

How do I keep the selections selected when it is right clicked on?


Rajasekar [Syncfusion]
Replied On July 10, 2012 07:11 AM UTC

Hi Rich,


Thank you for your update.


You can achieve your requirement by using the below code snippet,


Code Snippet[C#]


       this.dataGrid.Model.SelectionChanging += new GridSelectionChangingEventHandler(Model_SelectionChanging);
        void Model_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
            if (e.Reason == GridSelectionReason.MouseDown && Mouse.RightButton == MouseButtonState.Pressed
                && this.dataGrid.Model.SelectedRanges.AnyRangeContains(e.ClickRange))
                e.Cancel = true;


Please let us know if you have any queries.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon