Fires before the DoubleClick event is handled by the grid.
Syntax
[C1Description("Fires before the DoubleClick event is handled by the grid.")]
public event BeforeMouseDownEventHandler BeforeDoubleClick
The code below handles the
BeforeDoubleClick event to detect double-clicks on cells in a specific column and provide a custom edit dialog instead of using the built-in editor.
void _flex_BeforeDoubleClick(object sender, C1.Win.C1FlexGrid.BeforeMouseDownEventArgs e)
{
// detect double-clicks on column "Customer"
HitTestInfo hti = _flex.HitTest(e.X, e.Y);
if (hti.Type == HitTestTypeEnum.Cell && _flex[hti.Column].Name == "Customer")
{
e.Cancel = true; // cancel default handling
ShowCustomEditDialog(hti.Row, hti.Column); // handle row drag/drop
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2