your code is correct. i thing small mistake
TextBox ApplicationName = (TextBox)ctlGridView.Rows
[e.RowIndex].FindControl("txtApplnm");in this code u r specified as a row index but u has to specify column index also after tht u will get exact values. Regards Vijay S On May 19, 8:46 am, ASP_NET <[email protected]> wrote: > i am trying to access the value entered in the textbox in gridview. > TextBox ApplicationName = (TextBox)ctlGridView.Rows > [e.RowIndex].FindControl("txtApplnm"); > above is the code. > Is it correct? becoz i am still getting value as null. > > On May 18, 10:37 pm, Cerebrus <[email protected]> wrote: > > > Oh, really ? You forgot to ask a question ! > > > On May 18, 4:12 pm, ASP_NET <[email protected]> wrote: > > > > 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.- Hide quoted text - > > > - Show quoted text -
