How to update DataTable when changes on DataGridView were made?

Hello! I have a question about updating object DataTable after the changes on DataGridView were made. I think it is not good idea to go cell by cell... The problem is I probably can't use DataAdapter because I don't have any database below. I would like to store changed data only in DataTable object.
Any idea?
Thanx,
Ziga
[353 byte] By [fddsfsdf] at [2007-12-25]
# 1
the best case is to add data to datatable and then to assign dataTable object to dataGridView.DataSource property. In this way any changes in dataGridView will automatically reflect to data in Datatable object

Hope this helps

GalinIliev at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 2
Thanx! I already made this, but I didn't knew this is made automatically. So update on DataTable is perfromed when the focuse on the updated cell (on DataGridView) is gone?
Thanx,
Ziga
fddsfsdf at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 3
yes, update on underlying DataTable object is performed when cell lost focus
GalinIliev at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 4
Important safety tip:

I just discovered that using:datatablebindingsource.endedit() does not immediately commit the changes from the datagridview to the underlying datasource. ButDataGridView1.DataSource.EndEdit() does.

binarysins at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...