this is used when the Updating Row is fired
the first line works in grabbing the text from the textbox of the cell, but I cannot access the column header text, as it's telling me the columns do not exist.
cName = (System.Web.UI. WebControls.Tex tBox)GridView2. Rows[e.RowIndex].Cells[i].Controls[0]; //Cells[1].Controls[0];
cName.Text = GridView2.Colum ns[i].HeaderText. + "=" + cName;
ETA: my columns of data (the first 2 columns were added as an edit and delete column) are added automatically/dynamically, I believe this might be the issue.
thanks.
the first line works in grabbing the text from the textbox of the cell, but I cannot access the column header text, as it's telling me the columns do not exist.
cName = (System.Web.UI. WebControls.Tex tBox)GridView2. Rows[e.RowIndex].Cells[i].Controls[0]; //Cells[1].Controls[0];
cName.Text = GridView2.Colum ns[i].HeaderText. + "=" + cName;
ETA: my columns of data (the first 2 columns were added as an edit and delete column) are added automatically/dynamically, I believe this might be the issue.
thanks.
Comment