Steps:1. Loop through the GridView Rows. 2. Find The TextBox which is in ItemTemplate. 3. Take the value of that TextBox and update it where ever you want(Your database).
foreach (GridViewRow r in YourGridView.Rows) { //Find the textbox and update the value here }
GridViewRow row = (GridViewRow)GridView4.Rows[e.RowIndex]; TextBox txt_olodge = (TextBox)row.FindControl("txt_od");
update tablename set lodge='" + txt_od.Text + "'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)