Click to See Complete Forum and Search --> : Grid Refresh after delete


StephanM1
March 16th, 2001, 08:00 AM
Hi there,
after I delete a row in my table I want my DataGrit to be refreshed.
The deleting works fine in db, but the old record is still in the DataGrid:


DataEnvironment1.Connection1.Execute (sql_string)
DataEnvironment1.Connection1.Execute ("commit")

DataEnvironment1.rsCommand1.Requery
DataGrid1.Refresh


What is the mistage ???

regards
Stephan

anniel
March 16th, 2001, 10:25 AM
What kind of recordset you use?
I think though your db has updated, but because you use connection to do the update, recordset has not be updated. And your grid is related to recordset, so...

StephanM1
March 19th, 2001, 02:45 AM
I used:
DataEnvironment1.rsCommand1.Requery

to refresh my recordset

regards
Stephan