Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to addrecords to grid when user has entered last row
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00643689
Message ID:
00643798
Views:
12
>how to addrecords to gird when user has entered last row?
>I use grids to display the details on invoice.
>The record source is a local view with parameters from header file.
>Now I use F2 key to add new row to grid.
>The customer wants that a new record be added when he has completed the lastrow.
>If the added row must be added if any data is entered in it.
>
>Rajesh

You can use the grid's AllowAddNew property. If AllowAddNew is set to True (.T.), you can add a new record to a table in a grid by pressing the down arrow while positioned on the last record in the grid, as long as the grid is read-write. New records cannot be added from within the grid if the grid is read-only (if the RecordSourceType is a query, a table is read-only, and so on).
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform