Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending record on the grid
Message
 
To
08/01/1997 22:30:48
John Adams
John T. Adams Software Consulting Svcs
Keedysville, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00016733
Message ID:
00016962
Views:
35
>>>
>>>do you have a filter set? if so, the new record (most likely) doesn't meet the criteria...
>>
>>
>>No, I'm not set any filter or relation at all, it just a simple grid for trying with "bare" table from VFP sample data. Thanks.
>
>Try issuing a seek for the new record based on unique key or some other field, after your append. With Buffered table, the appended record, prior to the save is issued a record # of -1, which I think may be the source of your problem.
>
>Good Luck!
>
>John

You may also have to do a grid.refresh() call so the grid 'sees' the new record. I have had to do this in several places, and now it's part of my base code when adding to a grid display.

Barbara Paltiel
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform