I need to catch right clicking in rows to show a menu, but I don''t want the resulting right click to change the selection.
For instance, 3 rows are selected (contiguous or not), and then a right click is done (anywhere in the grid), I want to show a menu to operate on those 3 rows.
Currently right clicking simply changes the selection to the row that was right clicked on, definitely not what I need.
AD
Administrator
Syncfusion Team
June 2, 2004 05:44 PM UTC
Check out this KB to see if it is what you need.
http://www.syncfusion.com/Support/article.aspx?id=10430
AD
Administrator
Syncfusion Team
June 2, 2004 06:29 PM UTC
This works but then the grid doesn''t fire the cell_click event, which I need in order to show the menu.
>Check out this KB to see if it is what you need.
>
>http://www.syncfusion.com/Support/article.aspx?id=10430
AD
Administrator
Syncfusion Team
June 2, 2004 06:40 PM UTC
grid.MouseDown and grid.MouseUp events will be fired. Can you use those events. If you need the row and column of the click, you can use:
int row, col;
Point pt = new Point(e.X, e.Y);
if(grid.PointToRowCol(pt, out row, out col, -1))
{
//show menu at row, col
}