hey
you can only get value of EditItem template in RowUpdating Event
you can't get value of item template in RowUpdating Event because gridview
change ItemTemplate to EditItem Template when assign Edit index to gridview.
You can get value of ApplicationName in RowEditing event
ctlGridView_RowEditing Event
TextBox ApplicationName =
(TextBox)ctlGridView.Rows[e.NewEditIndex].FindControl("txtApplnm");
// if you want value this value after postback then u can assign to
viewstate
Viewstate(“ApplicationName”)= ApplicationName.text; //here you can get value
ctlGridView.EditIndex= e.NewEditIndex;
BindToGrid();//then you databind to gridview
2009/5/18 ASP_NET <[email protected]>
>
> i get null when i try to access the textbox value in the grid.
> TextBox ApplicationName = (TextBox)ctlGridView.Rows
> [e.RowIndex].FindControl("txtApplnm");
>
> ApplicationName.text returns null even though value is added after
> gridview edit click.
>
--
Regards
*******************
*C.Arun Kumar *
*******************