AD
Administrator
Syncfusion Team
August 25, 2003 01:06 PM UTC
In addition to handling RowLeave, also handle ValidatedFailed, and move the current cell there. You cannot move the currentcell from within RowLeave as at that point, the grid is in the middle of a currentcell move.
AddHandler Me.gridDataBoundGrid1.ValidateFailed, AddressOf grid_ValidateFailed
Private Sub grid_ValidateFailed(sender As Object, e As GridValidateFailedEventArgs)
Dim cc As GridCurrentCell = Me.gridDataBoundGrid1.CurrentCell
Me.gridDataBoundGrid1.CurrentCell.MoveTo(cc.RowIndex, 1, GridSetCurrentCellOptions.SetFocus)
End Sub 'grid_ValidateFailed