I added function to DoubleClickRow Event in my grid, but vhen I doubleclick on row, nothing happen.
Anybody nows why? Has grid some property that I have to set?
This FAQ should help:
FAQ:Mouse events such as MouseDown, MouseUp, and DoubleClick do not fire when the mouse is over a cell that is in edit mode.
There's no right-click event. But you can use MouseDown or MouseUp to determine which mouse button is clicked. This is not specific to the grid, it's tru of any control in DotNet.
I may be having the same trouble and would love some advice. I have the following function in my code for an ultragrid named ugridAlerts:
I have a breakpoint set in thsi function so I can debug it. I set my CellClickAction to SelectRow as follows:
this.ugridAlerts.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect;
This seems to work because selecting a cell selects the row when the application runs. However, my double-click code never seems to be run when I double click any cell/row within my grid.
I'm new to this and am obviously missing something. Any advice?
Also, is there a right-click event?
Steve
What is your CellClickAction set to? If you click on a cell and it goes into edit mode, then the edit window will be receiving the second click message and so there is no double-click on the row.