OK. I've spent the last 2 hours messing with the grid and I'll tell you what I know. I create a table with 4 fields. The fields were generally favoritenumber, color, ect. This is a stand alone table, no DBC. I created a form and dropped a grid in. I used the builder to kind of get my grid set up, get all the essentials, looks and captions and stuff (not-important) I set 4 columns to the 4 fields in my grid. I put 2 cmds on the form ADD and DELETE record. I stuffed the table with 6 records. I ran the form and the 6 records came up. When I hit delete, nothing happens but the delete mark next to the record lights up, bear in mind set deleted is on at this point, and to make sure of that I put a SET DELETED ON command button on the form with a textbox showing the status of SET("DELETED"). The form is in the default data session also. Here's the weird part (to me anyway): If I delete another record while in the form the first record I deleted goes away, whalla! Then I delete a third record and the second goes away, and so on. What the heck?! Here's my code:
cmdADD
SELECT LIKE && name of table I created
APPEND BLANK
THISFORM.Grid1.Refresh()
THISFORM.Grid1.SetFocus()
cmdDELETE
IF MESSAGEBOX("Are you sure, or what?!!!",32+4,"Delete Confirmation")=7
RETURN
ENDIF
DELETE IN LIKE
THISFORM.Grid1.Refresh()
That's all there is to it. I guess I need to study the grid more, can anyone help me out? Thanks
** ** ** ** ** ** ** ** ** ** **
Gregory Cummines
Visual FoxPro 3.0/5.0
C/C++ Applications
** ** ** ** ** ** ** ** ** ** **