Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
5355 | Jun 30,2003 07:17 PM UTC | Jul 1,2003 12:37 PM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
private bool okToClear = false; private void gridDataBoundGrid1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) { okToClear = false; this.gridDataBoundGrid1.Selections.Clear(); okToClear = false; GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; this.gridDataBoundGrid1.Selections.Add(GridRangeInfo.Row(cc.RowIndex)); } private void grid_SelectionChanging(object sender, GridSelectionChangingEventArgs e) { if(e.Range.IsEmpty) { e.Cancel = !okToClear; } }
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.