-
I have a MSHflexgrid component with a delete record cmmand button. If user click the delete command button, my program will display another form to request user confirmation to delete. The problem i am facing here is when I return back to the MSHflexgrid control after deletion, the record is still there. If user try to delete it again, the program will display error message telling user that the record cannot be found. How to I make the MSHFlexgrid to automatically update when a record is deleted?
regards
-
I assume you are using data bound control
Try this
Code:
'When the delete button is click
Data1.Recordset.Delete
Data1.Recordset.Movenext
Msflexgrid1.Refresh