Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refresh problem
Message
From
28/05/1998 02:50:30
 
 
To
27/05/1998 11:49:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00101877
Message ID:
00102635
Views:
28
>My setting focus to the grid after adding an item has solved apart of my
>problem, however when I delete an item the problem stillpersists. Let me elaborate - I'm using a grid recordsource - child table( form optimistic buffering, private data session ). I'm usingcmdbuttons for adding/deleting items. Now when I add a new item &then press the delete button the item is still displayed in the grid( I'm setting some default values ). I think that as this is the lastrow in the grid on refreshing only take place to the row above asthis record has been deleted! What I think I need is a method tototally blank out the grid and refresh it!Any ideas will be greatly be appreciated as I've not been able tocreate a one-to-many entry form.Thanks in AdvanceSonali

If you delete a item but record pointer remains on it, it doesn't disappears, like in a browse window. You can move the record pointer for instance issuing 'locate' or 'go bottom' or 'go top' after the delete command.
I think that remain viewing the deleted record is a good thing, as you can recall it from the deleted mark in the grid.

Other method can be set deleted off, set deleted on.

If you still want to totally repaint the grid, you can leave the recordsource property = "" and then again set it to the alias. But i think this is never necesary.
Saludos,
A.G.P.
---------
Previous
Reply
Map
View

Click here to load this message in the networking platform