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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Datagrid LeaveProblem

Thread ID:




7708 Oct 7,2003 10:35 AM UTC WinForms 0
Tags: FAQ
Asked On October 7, 2003 10:35 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon