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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Right-Clicking and focus

Thread ID:

Created:

Updated:

Platform:

Replies:

3005 Feb 25,2003 02:12 PM UTC May 19,2003 04:28 AM UTC WinForms 5
loading
Tags: GridControl
Ivan Pelly
Asked On February 25, 2003 02:12 PM UTC

Sometimes a rightclick will give a cell focus, and sometimes not. What's the expected behavior? Thanks!

Administrator [Syncfusion]
Replied On February 25, 2003 02:39 PM UTC

I would expect the left and right click to do more or less the same with repect to activating a cell. Of course, if you are handing certain events or setting a property that would affect the click or cell activation, then this behavior could change. Can you provide a sample showing different behavior between a right click and a left click? It might be a bug, or it may be by design depending upon exactly what the context is.

Jack Carter
Replied On February 26, 2003 06:10 PM UTC

I use the right click to pop up a context menu. I just handle the MouseDown event in the parent control. It works great. > Sometimes a rightclick will give a cell focus, and sometimes not. What's the expected behavior? Thanks!

robert amaio
Replied On May 6, 2003 07:02 PM UTC

how do you use the right click to pop up a context menu. Do you use the context menu property or did you custom code it? > I use the right click to pop up a context menu. I just handle the MouseDown event in the parent control. It works great. > > > > > Sometimes a rightclick will give a cell focus, and sometimes not. What's the expected behavior? Thanks! >

Administrator [Syncfusion]
Replied On May 6, 2003 08:31 PM UTC

Try setting this property which controls what mouse buttons select cells. It defaults to the left buttom, but you can include the right button as well. Me.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = Me.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask Or MouseButtons.Right

sethuramanV
Replied On May 19, 2003 04:28 AM UTC

i have a problem with context menus. I am using a treeView in which i have a context menu and the checkbox property is set to true. I populate a dataGrid after clicking on the context menu. When i return to the treeView, i notice a strange problem. Even if i click on the left mouse button the mouse button is always set to MouseButtons.Right.(clicking on the checkbox of the corresponding node) Everything goes fine after i click on the node once instead of the corresponding checkbox which i dont want to do. Please help me in this regard. Regards.

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.

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

;