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.
Unfortunately, activation email could not send to your email. Please try again.

Need to process row selection on a right mouse button click

Thread ID:

Created:

Updated:

Platform:

Replies:

48265 Aug 23,2006 12:27 PM Aug 25,2006 06:04 AM Windows Forms 3
loading
Tags: GridControl
Konstantin Babiy
Asked On August 23, 2006 12:27 PM

I have a range of rows selection. Pressing with a RMB on this range causes resetting my selection BEFORE processing TableControlCellClick

How could I solve this? I need to somehow have this range when right mouse button pressing processes.

Thanks for your help.

Administrator [Syncfusion]
Replied On August 24, 2006 12:22 AM

Hi Kostya,

There is a property that controls this behavior of which mousebutton can select cells. Try the below code

this.grid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

This should prevent the right button from affecting any selections.

Please let me know if this does not handle things for you,

Thanks,
Haneef

Konstantin Babiy
Replied On August 25, 2006 05:57 AM

Thank you for assistance, Haneef.

This property works (in GridGroupingControl i found it in
_gridGrouping.TableControl.Model.Options.SelectCellsMouseButtonsMask)
BUT
setting it to left mouse button only suppresses TableControlCellClick event appearing (_gridGrouping.TableControlCellClick), so i cannot have what I wanted - my selection on my RMB click processing.

Right now i am trying to solve this, but still no success :(


>Hi Kostya,

There is a property that controls this behavior of which mousebutton can select cells. Try the below code

this.grid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

This should prevent the right button from affecting any selections.

Please let me know if this does not handle things for you,

Thanks,
Haneef

Konstantin Babiy
Replied On August 25, 2006 06:04 AM

I have to correct myself:

setting it to left mouse button only suppresses TableControlCellClick event appearing on right mose button click - so I just can''t have my RMB popup menu appear

CONFIRMATION

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.

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.

;