Click here to Skip to main content
16,012,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am updating gridview data ..........i have textbox in edititemtemplate. Now i have to update the value in gridview. how will i retrieve the value from textbox and update it in database ..Please help me
Posted

1 solution

Use RowUpdating event.
and you can find your textbox control using
TextBox txtName = (TextBox)Gridview1.Rows[e.RowIndex].FindControl("txtName");
string Name=txtname.Text;


Use this Name to update database.
 
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