Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Control Data Entry
Message
From
13/05/1997 11:17:46
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
 
To
13/05/1997 10:35:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00031937
Message ID:
00031963
Views:
43
>I have data entry taking place in a grid control. How can I best create a new record (i.e., line on the grid) so that the user doesn't have to keep punching an Add Item button every time? Do I have to TABLEUPDATE() the completed record? What is the best way to automate the INSERT INTO for the new record? Finally, is it OK to use the VALIDATE event to TABLEREVERT the new record when the user doesn't want it??
>
>TIA.
>
>John

One suggestion is you can use a specify key say ctrl+n which when pressed will call a user define method/procedure to add a record.

that key you can set through on key label in the when event of grid and can reset it in valid event.

as far as tableupdate/revert are concerned, best way is to use command buttons like add, edit, when either of these are clicked, 2 buttons save and cancel becomes enable allowing the user to save or cancel the record.

hope this helps !!
Previous
Reply
Map
View

Click here to load this message in the networking platform