Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have an application that fills a datagrid using a datatable as the datasource.

 

Now, I would like for the user to be able to make changes to that datagrid, then when he/she is ready to hit a submit button and send the changes back to the DB.

 

The question is if this is possible and if it is..how?

 

Thanks :D

  • Leaders
Posted
Yep. The easy way I think is to set up a DataAdapter (specifically, the InsertCommand/UpdateCommand/DeleteComand propertyies) and call it's Update method passing in the datatable. There are numerous examples online for this.
--tim
Posted

Excellent piece of code by Robby!

 

I spent the last week and a half surfing the net and searching for any sample code to do just this sort of thing.

 

Thanks Robby! :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...