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. Image for the cookie policy date

Need to process row selection on a right mouse button click

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.

3 Replies

AD Administrator Syncfusion Team August 24, 2006 04:22 AM UTC

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


KB Konstantin Babiy August 25, 2006 09:57 AM UTC

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


KB Konstantin Babiy August 25, 2006 10:04 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon