GridListControl - Get Mouse Coords on DoubleClick

How do I obtain the mouse coordinates of a double-click in the GridListControl?

What I really want to do is ignore double-clicks when they occur outside of a row of data in the grid. This can occur when when double-clicking to the right of all the columns.

Maybe there's some setting to tell the GLC not to raise the double-click event when not clicked on a valid row of data (not including the headers)

Thanks.
Andy

2 Replies

AD Administrator Syncfusion Team March 23, 2007 04:30 PM UTC

Hi Andy,

Try handling the Grid.CellDoubleClick event to achieve this.

private void Grid_CellDoubleClick(object sender, GridCellClickEventArgs e)
{
GridControlBase grid = sender as GridControlBase;
if( grid.Model[e.RowIndex,e.ColIndex].CellType == "Header") //It cancels the double click on the column header.
{e.Cancel = true;}
// To get MousePoints using e.MouseEventArgs
}

Best regards,
Haneef


AD Administrator Syncfusion Team March 26, 2007 01:27 AM UTC

That did the trick. Thanks.

Loader.
Up arrow icon