Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't get the deleted record to go away in the grid.
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Can't get the deleted record to go away in the grid.
Miscellaneous
Thread ID:
00002696
Message ID:
00002696
Views:
99
OK, after learning about the private datasession's set commands, I put the command SET DELETED ON in the init of the form I am using. Now when I look up a student the grid DOES NOT show the deleted record anymore, shew! It works! But, when deleting a record from the grid, that instance it doesn't disapear. You have to look the student up again to find out it is gone! Here is my code in the cmdDelete click():

IF MESSAGEBOX("Are you sure you want to delete course# "+;
CS_Lines.Course_id+CHR(13)+"for this student",32+4,"Delete Confirmation")=7
RETURN
ENDIF

DELETE IN CS_LINES
ThisForm.Mba_PageFrame1.Page2.Courses_Grid1.Refresh()

I've also tried to refresh the whole form and that doesn't work, what can I do to see the record instantaneously disapear? Thanks for the help.
** ** ** ** ** ** ** ** ** ** **
Gregory Cummines
Visual FoxPro 3.0/5.0
C/C++ Applications
** ** ** ** ** ** ** ** ** ** **
Next
Reply
Map
View

Click here to load this message in the networking platform