Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding new rows to a grid under program control
Message
From
04/09/1998 04:55:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00133037
Message ID:
00133149
Views:
16
>I am trying to allow users to add a new item to an invoice grid. I would like the new line (row) to be formatted with the correct line number, todays date etc. I have been trying to insert the appropriate code into the beforerowcolchange or afterrowcolchange events by determining the number of active rows in the invoice - checking which row is active - and detecting a "down-arrow" key pressed while in the last row.
>
>I am not able to make this work. I can determine the activerow in the afterrowcolchange event using the activerow property - but I cannot detect the downarrow key.
>
>Any Ideas? thanks in advance as always.
If this is VFP5 and later why not use grid.allowaddnew property ? It takes care of down arrow in last row. Anyway you could use lastkey().
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform