Dataset / DataAdapter Quesiton..!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm loading a grid with records from table1. Then I'm changing some of the
records in the grid. What I want to do is load those records into a dataset
or whatever is recommended and then update table1 with the new information.

How can I do this? What's the best way?

Thanks in advacnce...!

Jim
 
In the UpdateCommand event handler of the grid, take the data from the input
fields of the grid and modify the corresponding fields for the correct
corresponding row in the DataSet. Call the DataBind method of the DataGrid
to refresh the grid and then call the Update method of your DataAdapter to
update the original data source.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top