hi,
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(...)
Handles dgItems.CurrentCellChanged
If oldCurrentRow < Convert.ToInt32(txtPieces.Text) Then
' Some custom code i wrote.
else
txtWeight.Focus()
Exit Sub
end if
End Sub
the focus is not going there .
can any one help me in this
Regards and Thank You
Sridhar G