Quote:
textbox in the generated rows
how to generate a Row in GridView with TextBoxes[
^]
Quote:
How to access gridview fields from button_click event where the button is located outside the gridview?
You can try something like this:
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
TextBox textBox = row.FindControl("TextBox1") as TextBox;
}
}
}