Hi,

I am binding the Datagrid by
Code:
DataGrid1.DataSource = ds
now when i make any changes in the Datagrid how do i make the changes refect in the database..i..e how do i update the database

I know that I can update the database with a single record by this
Code:
            
ds.Tables("Books").Rows(1).Item("Author") = txt1.Text
da.Update(ds, "books")
This is done only if i know that the record in row 1 and Column Authors has to be changed..
where da is the data adapter and ds is the dataset
Please advice...