this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
This should prevent the right button from affecting any selections.
>this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
>
>This should prevent the right button from affecting any selections.
>>this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
>>
>>This should prevent the right button from affecting any selections.
>this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
>
>This should prevent the right button from affecting any selections.
>this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
>
>This should prevent the right button from affecting any selections.
private bool lockForForMouseUp = false; private void gridControl1_CurrentCellDeactivating(object sender, CancelEventArgs e) { if(lockForForMouseUp) { e.Cancel = true; lockForForMouseUp = false; } else if(Control.MouseButtons == MouseButtons.Right) { int row, col; Point pt = this.gridControl1.PointToClient(Control.MousePosition); if(this.gridControl1.PointToRowCol(pt, out row, out col) && this.gridControl1.Selections.Ranges.AnyRangeContains(GridRangeInfo.Cell(row, col))) { e.Cancel = true; lockForForMouseUp = true; } } }