Hi.. I have a grid view. I had set the autogenerateedit buttion to true. and i wrote the following code
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
GridViewRow row = GridView1.Rows[GridView1.EditIndex];
string str1 = ((TextBox)(row.Cells.Controls)).Text;
string str2 = ((TextBox)(row.Cells.Controls)).Text;
Response.Write(str2 + " " + str3);
So, When i click the edit button on the grid view, it will show me 'update' and 'cancel' buttons along with text boxes for cells 1 and 2. but when i change the data in those text boxes and click the 'update' button, 'response.write' is sowing me the previous values rather than modified values. How to get the modified values into str1 and str2 ?
View Complete Post