Results 1 to 2 of 2

Thread: MSHflexgrid - Refresh ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Malaysia
    Posts
    90

    Question

    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
    CT

  2. #2
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width