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
** ** ** ** ** ** ** ** ** ** **