I'm doing something like this right after I bind the data in a GridView to populate links. There is probably a better way.
Off the top of my head, you could try something like this:
foreach (GridViewRow gvr in dgSupervisor2.Rows)
{
CheckBox selectedCheckbox = (LinkButton)gvr.FindControl("checkBox");
if (selectButton != null)
{
int i = gvr.RowIndex;
TableCellCollection MyCells = Manager.Rows[i].Cells;
TextBox ToDisable = MyCells[5];
if (selectedCheckbox.Checked == true)
{
ToDisable.Enabled = false;
}
}
}
But check to make sure my syntax is right.