This is a .aspx page.
I currently have this:
foreach (GridViewRow gvr in gvShows.Rows)
{
if (gvr.RowType == DataControlRowType.DataRow)
{
if (((CheckBox) gvr.FindControl("cbSelect")).Checked)
{
string dataSource = gvr.Cells[1].Text;
}
}
}
Which works if the column is visible.
However, the gridView column is now hidden but I still need to capture its value.
How would I go about converting the above code to get the dataSource value which is in a hidden column?