Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22545 | Dec 15,2004 09:06 AM UTC | Dec 15,2004 09:44 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private int moveToCol = -1; private int moveToRow = -1; private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) { if(somethingIsBad) { this.gridDataBoundGrid1.BeginUpdate(); this.moveToCol = badColumnIndex; this.moveToRow = e.RowIndex; } } private void gridDataBoundGrid1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) { if(this.moveToCol > -1) { int col = this.moveToCol; this.moveToCol = -1; this.gridDataBoundGrid1.EndUpdate(); this.gridDataBoundGrid1.CurrentCell.MoveTo(this.moveToRow, col); } }
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.