Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Control - Append a new record in the last grid row
Message
 
To
10/11/1998 12:03:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00156026
Message ID:
00156258
Views:
46
>How would you like to have it work?
When the user enters the empty grid or deletes all child records, an empty row should be available.

>When there are no records in the grid, you can't get focus into a row, because there are no rows. So you can't down arrow to add a record. You could put >something in grid.click() to add a record if the the cursor is empty...
This is another situation that has the grid screaming for a GotFocus and LostFocus event. I was hoping to test This.ActiveRow in the grid and if 0 APPEND a new record but can't determine where. I can't use .Click because the functionality has to be there when TABbing into the grid as well.

I've ended up using the COUNT... function in the grids .When event and in my custom Form.DeleteRec event. If 0 then I APPEND. It works but I'm not totally happy with it. I keep thinking there has to be a better way of doing this.

Thanks for the input. Any other ideas would be greatly appreciated.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform