Link to home
Start Free TrialLog in
Avatar of slay21455
slay21455

asked on

Visual Basic .Net

with VB.Net: When using a DataViewGird,and entering text into a column and then tabbing or clicking another column and if the data entered is not what it should be, how do I give a message, and keep focus on that column.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

You can use the CellValidating event of the grid, and if the validation fails, set e.Cancel = true to stay in that cell
Avatar of slay21455
slay21455

ASKER

Thank you for your answer, however

Sorry, but the answer does not give me enough detail.  I am not that familiar with Vb.Net and would like a more detailed example of the events and the code.

Jack
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much Eric, I appreciate the answer and the quit response.
you need to accept the comment if it fulfills your requirement to close the question
Got good comments on that proposed solution