I can't figure out where to put the code to advance to the next datagridview control when a specific condition occurs. Here's the code to set the focus.
This code keeps giving me this error: Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.
I'm calling this Sub from within the CellEnter event.
Friend Sub Advance2Next(ByVal dgv As DataGridView)
Dim gc AsInteger = dgv.CurrentCell.ColumnIndex
Dim gr AsInteger = dgv.CurrentCell.RowIndex
dgv.CurrentCell = dgv.Item(gc + 1, gr)EndSub