Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help to Add record in Grid
Message
From
09/08/1999 12:45:01
 
 
To
09/08/1999 12:12:07
Amit Abhangrao
Charmi Software Exports
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00251549
Message ID:
00251573
Views:
10
>Hello Friends,
>
> I am using a grid for my data entry programs, but i am facing a big problem of how to add record into that. What could be the best method to add record?
>
> First i thought of On Key Label XXX Do AddRecord
> But i feel with this code, i might face problems while i am moving from one form to another,
>
> I then thought for Down Arrow to add record. But how to validate full record in down key pressing. How i can write the code for that?
>
> Is there any other solution for adding records in grid?
>
>Regards
>Amit

First, IMO grids are not good controls for adding/editing data, only presenting existing data to the user. Then add buttons to the form to "Add" or "Edit" the data. These buttons would display a second data entry/editing form for the user to enter/edit the data.

In your case you could still add an "Add" button ( or menu option ) to the form which would insert a record into the table and allow the user to enter the necessary data.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform