Hi all,
I feel like this is a really simple question that I should know the answer to, but unfortunately I am a little bit stupid and cannot find straightforward answers anywhere!

I have a DBGrid (actually a KDBGrid) that loads fields from a table CurrentSession using DataSource1 and SQLQuery1. My transaction is called UserFileTransaction.
OnChange appears to be the most appropriate event available in a KDBGrid. Is there a simple code I can add to this event that will save the user's edits to the database? Here is my best attempt so far, for your amusement:
Userfiletransaction.Active := true;
SQLQuery1.ApplyUpdates;
Userfiletransaction.Commit;
Hope you all got a good chuckle out of that. Now anyone know what I actually need to do?
My eternal gratitude for any suggestions, and also for not throwing rotten fruit at me.
