Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to update data in gridview in the Row_UPdating event... for that i have done connection at runtime in griview ....... then I done my connection string and update command at runtime......now in the row updating event i want to get the old values of the row from the database..if i click the edit button then it's automatically get's uppdated in the database...help me please how to do this ...i tried of many times but my values did't get updated in my database.....and remember one thing in my gridview i have added the edit,update,cancel button from commandfield in editcolumns from the smart tag....THANK YOU......
Posted
Updated 14-Mar-11 18:49pm
v2
Comments
[no name] 15-Mar-11 0:50am    
Post your code what you have tried so for so that our experts can help you to sort out the issue.

Here is the example link which suites your requirement.

http://www.dotnetspider.com/resources/22000-Gridview-add-update.aspx[^]

Hope this help !!!
 
Share this answer
 
You should study also this link
GridView Examples for ASP.NET

Best Regards,
Theingi Win
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900