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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

True DBGrid update causes record loss

Status
Not open for further replies.

davec8783

Programmer
Jan 17, 2001
13
0
0
US
I am having trouble updating data on a form containing a grid and some other controls. I made an "update" button and applied the following code to it as depicted in the manual page 75 to update changes.

Data1.Recordset.Edit
Data1.Recordset.Update

When the program is running new data in the grid is lost, instead of updated when the button is pressed.

Has anyone else encountered this?
 
I figured it out myself....took me 3 days !!! Big deal right ???

The grid control has an update property. Works perfect. I wish they would write this stuff in the manual. I am getting tired of experimenting. You have to do a:

TDBGrid1.Update

before the

Data1.Recordset.Edit
Data1.Recordset.Update

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top