Accessing the contents of a hyperlink column in a
The problem is the dataGridItem.Cells[0] is returning blanks and it's defined as a hyperlink column which is databound. When the grid loads it looks fine, however, when I attempt to get the data from that cell it returns blanks.
dgLoanStatus is the datagrid
foreach (DataGridItem dataGridItem in dgLoanStatus.Items)
{
string status = dataGridItem.Cells[0].Text;
for(int i = 0; i < roleList.Count; i++)
{
if(status == roleList[i].ToString())
dataGridItem.Cells[0].Enabled = true;
else
dataGridItem.Cells[0].Enabled = false;
}
}
|