melegant Posted April 20, 2003 Posted April 20, 2003 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 Quote
Leaders quwiltw Posted April 21, 2003 Leaders Posted April 21, 2003 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. Quote --tim
Leaders quwiltw Posted April 21, 2003 Leaders Posted April 21, 2003 Actually I just noticed Robby posted some sample code that looks appropriate to your question. You might want to check it out. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=71636 Quote --tim
melegant Posted April 23, 2003 Author Posted April 23, 2003 Woop thanks..worked like a charm.....these boards are the best. Quote
me_again Posted April 23, 2003 Posted April 23, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.