BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.grid.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
this.gridDataBoundGrid1.GridControlMouseDown += new Syncfusion.Windows.Forms.CancelMouseEventHandler(gridDataBoundGrid1_GridControlMouseDown);
private void gridDataBoundGrid1_GridControlMouseDown(object sender, Syncfusion.Windows.Forms.CancelMouseEventArgs e)
{
int row, col;
GridControlBase grid = (GridControlBase) sender;
if (grid.PointToRowCol(new Point(e.MouseEventArgs.X, e.MouseEventArgs.Y), out row, out col))
{
if (grid.Model.SelectedRanges.GetRangesIntersecting(GridRangeInfo.Row(row)).Count > 0)
{
grid.Model.Selections.SelectRange(GridRangeInfo.Row(row), false);
grid.Model.InvalidateRange(GridRangeInfo.Row(row), GridRangeOptions.None);
e.Cancel = true;
}
}
}
Stefan
>Fantastic!
>
>Ok, here''s one final question. While having multiple rows selected, how do I get the ctrl click to REMOVE a row from the selection (another Windows standard)?
>
>Rick