((TextBox)GridView1.Rows[e.RowIndex].Cells[1].Controls[0]).Text
I am using this line of code to access the value of textbox which appeared when i clicked on auto generated edit button in gridview.
It is working fine. But my question is that what Controls[0] represents here?
By the syntax it is looking like a collection whose zeroth control is being accessed by me. Then in what scenario would there be need to use Controls[1], Controls[2] ??
I am using this line of code to access the value of textbox which appeared when i clicked on auto generated edit button in gridview.
It is working fine. But my question is that what Controls[0] represents here?
By the syntax it is looking like a collection whose zeroth control is being accessed by me. Then in what scenario would there be need to use Controls[1], Controls[2] ??