Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
8506 | Nov 10,2003 01:01 AM UTC | Nov 10,2003 07:35 PM UTC | WinForms | 12 |
![]() |
Tags: GridControl |
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(); }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.