We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Datagrid LeaveProblme

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

Loader.
Live Chat Icon For mobile
Up arrow icon