BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void grid_SelectionChanging(object sender, GridSelectionChangingEventArgs e) { int row, col; GridRangeInfoList rangeList; Point pt = this.grid.PointToClient(Control.MousePosition); if(e.Range.IsEmpty && Control.MouseButtons == MouseButtons.Left && this.grid.PointToRowCol(pt, out row, out col, -1) && this.grid.Selections.GetSelectedRanges(out rangeList, false) && rangeList.AnyRangeContains(GridRangeInfo.Cell(row, col))) { e.Cancel = true; } }
private void gridMessages_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) { this.gridMessages.Selections.Clear(); }
GridCurrentCell cc = this.gridMessages.CurrentCell; if(cc.HasCurrentCell && cc.RowIndex > 0 && cc.ColIndex > 0) this.gridMessages.Selections.Clear();
private void gridDataBoundGrid1_KeyDown(object sender, KeyEventArgs e) { if((e.Modifiers & Keys.Shift) == 0) this.gridDataBoundGrid1.Selections.Clear(); }