Fires before the
System.Windows.Forms.Control.MouseDown event is handled by the grid.
Syntax
The code below handles the
BeforeMouseDown event to detect clicks on row headers and provide OLE drag and drop functionality.
void _flex_BeforeMouseDown(object sender, C1.Win.C1FlexGrid.BeforeMouseDownEventArgs e)
{
// start dragging when the user clicks the row headers
HitTestInfo hti = _flex.HitTest(e.X, e.Y);
if (hti.Type == HitTestTypeEnum.RowHeader)
{
e.Cancel = true; // cancel default handling
HandleRowDragDrop(hti.Row); // 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