GridView dynamic column with editable, i am creating a grid which is dynamic and can be update and delete record, In the the of bind grid i use Edititemtemplate for bind textboxes with ID in it. when click on edit button.
in rowupdating event i am unable to get old and new values of textboxes for update record.
What I have tried:
Dim name As TextBox = DirectCast(GridView1.Rows(e.RowIndex).FindControl("txt_Name"), TextBox)
Here txt_name is ID of textbox.
but not working