Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Paul Brown
  
 York
 
 Paul Brown
 To: Ayman Hussein
  Where is Ayman Hussein?
 Beirut
 Lebanon
 Ayman Hussein
 Tags
Subject: RE: grid control and field validation problem
Thread ID: 21874 Message ID: 21917 # Views: 33 # Ratings: 0
Version: Visual FoxPro 7 Category: Grids
Date: Friday, April 04, 2003 12:05:25 PM         
   


> hi everyone
> I created a validation rule for a field in a table, it worked perfect using the normal browse command but I faced a problem when i linked this table to a grid control in a form. when I insert a wrong figure in this filed which fires the validation message, I can no more scroll through the table using the ENTER key nor the arrow keys, all I can do is to go to another cell using the mouse and have the previous cell still highlighted...... did anyone face this problem and how to solve it??
>
> thank you
>
>

Hi

You appear to have used a grid for data input. This is not a good idea as many people over the years have found out! Put individual fields on the form and handle any errors in your save routine. I would also advise against using the table rules. It's much better to create business objects which host all your application logic.

HTH
Paul

COMPLETE THREAD

grid control and field validation problem Posted by Ayman Hussein @ 4/3/2003 1:10:23 PM
RE: grid control and field validation problem Posted by Paul Brown @ 4/4/2003 12:05:25 PM