Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flexgrid remove item after database delete

Status
Not open for further replies.

clientuser

Programmer
Apr 18, 2001
296
US
how do you delete an item from a flexgrid after you have deleted it from a database?

i tried the refresh on the flexgrid but no good.

 
In refresh I don't know whether it just redraws it? The grid needs to be reloaded with the recordset.
 
Much more to it than that. The way to do it, when you click on the grid to highlight the record, store the MouseRow value (assume the variable is called mRow).This happens on the MsFlexGrid1_Click event. When you want to delete the row then do the following.

Code:
With MsFlexGrid1
  .Row = mRow
  .RemoveItem mRow
End With

Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top