I have a editable datagrid in a Windows forms. after filling fews rows i want to leave the datagrid and set focus to a text box control on the form.
My code is Like this
Private Sub dgItems_CurrentCellChanged(...)
If oldCurrentRow < Convert.ToInt32(txtPieces.Text) Then
' Some custom code i wrote.
the focus is not going there .
can any one help me in this
Regards and Thank You