Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1210
Iterate cells in IntializeRow event
posted

I am trying to iterate through all cells on a row looking for cells that have a value below and if present to hide that cell. The code below is not working. I am new to webdatagrid so your input would be welcome

for (int i = 0; i <= e.Row.Cells.Count - 1; i++)
{
    if (e.Row.Cells[i].Value.ToString() == "1/1/1800 12:00:00 AM")
    {
        e.Row.Cells[i].Hidden = true;
    }
}