WPF DataGrid update database

Nov 16, 2008 at 4:47 AM
I would like my DataSet bound DataGrid to update my database each time the DataSet is updated. I see that there is a RowEditEnding event but I can not find RowEditEnded event.Is it by someother name? How can I get my Database updated?
Nov 16, 2008 at 6:40 AM
Hi David,

From memory (I have not got the code on this machine) the RowEditEnding event is called before the edit is commited. Therefore the ro's state will not be suitabel for commiting to the database. For an example of how to send updated to the database, see this exampe:


Colin E.

Nov 16, 2008 at 10:24 PM
Thanks. That is a good article. I didn't think to ask the dataset  instead of the IU. It makes sense now that I see it.
Thanks again.