C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : BeforeDoubleClick Event |
'Declaration
<C1DescriptionAttribute("Fires before the DoubleClick event is handled by the grid.")> Public Event BeforeDoubleClick As BeforeMouseDownEventHandler
'Usage
Dim instance As C1FlexGridBase Dim handler As BeforeMouseDownEventHandler AddHandler instance.BeforeDoubleClick, handler
[C1Description("Fires before the DoubleClick event is handled by the grid.")] public event BeforeMouseDownEventHandler BeforeDoubleClick
[C1Description("Fires before the DoubleClick event is handled by the grid.")] public: event BeforeMouseDownEventHandler^ BeforeDoubleClick
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