Hello Everyone,
I have retrieved data in Grid View from wizard.. I have modified 2 fields in Grid View
I need to update the same using update command using table-adapter.
Can anyone help me how to use update command...
Thanks in advance..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nir BarPosted Sep 30, 2009, 9:55 AM
You should use a derived class of DbDataAdapter that matches the DB server you're using.
Then You need to set the DbDataAdapter.UpdateCommand with your command text (such as SQL command, or whatever DB you're using)
Then you call DbDataAdapter.Update()
Please mark this post as an answer if it helps you
Nir
chetan bhattadPosted Oct 1, 2009, 10:19 AM
Can you give me a example code.
Thanks