aspvbnetnerd
Programmer
I am trying to get a value from gridview when trying update a row.
I press edit on the gridview and then type som new information on the textbox and then click update.
On RowUpdating I am trying to catch to the new value that I has entered and then click update.
But I am getting the old text in my string dFName and not the new entered text
Any help is appreciated
/George
I press edit on the gridview and then type som new information on the textbox and then click update.
On RowUpdating I am trying to catch to the new value that I has entered and then click update.
But I am getting the old text in my string dFName and not the new entered text
Code:
protected void GridProjects_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
System.Web.UI.WebControls.TextBox FieldName2 = new System.Web.UI.WebControls.TextBox();
FieldName2 = ((TextBox)(this.GridProjects.Rows[e.RowIndex].Cells[10].Controls[0]));
string dFName = FieldName2.Text;
}
Any help is appreciated
/George