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

TDBGrid doesn't Save The Details On Run Time

Status
Not open for further replies.

lpk294

Programmer
Apr 10, 2005
3
GB
Hi There, I have an Interbase Database imported into Delphi with the help of TIB components.
I have a TDBgrid on a form linked to the datasource of one of the tables in the database.

Whenever I save any details into the grid, there is no problem and the details are added to the grid.

However, what I've realised is that the details are NOT ACTUALLY SAVED UNTIL the program is closed.
This is a problem because if i have entered details into the table and the program crashes, then all the data i have entered will be lost.

So what i want is for the details to actually be saved when i enter them instead of having to wait for them to be saved once the program is closed.

Any suggestions please?
Thanks a lot.
 
do you have cached updates set to true? usually when you move from one record to another in a DBGrid, there is an implicit POST and the record is saved.

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top