Hi,
I have a hierarichal grid and I'm trying to change the parent row cell color. The below code is working fine for changing the background color of a cell. But when I click on the expand arrow it is not expanding the detail table. If I comment out this code, it expands fine.
What am I doing wrong? Suggessions please....
protected void RadGridResults_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem dataItem = (GridDataItem)e.Item;
if (dataItem["rpd_cott_ind"].Text == "COTT")
{
dataItem["rpd_cott_ind"].BackColor = System.Drawing.Color.Brown;
dataItem["rpd_cott_ind"].Font.Bold = true;
}
}
}
Thanks,
PJ.
I have a hierarichal grid and I'm trying to change the parent row cell color. The below code is working fine for changing the background color of a cell. But when I click on the expand arrow it is not expanding the detail table. If I comment out this code, it expands fine.
What am I doing wrong? Suggessions please....
protected void RadGridResults_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem dataItem = (GridDataItem)e.Item;
if (dataItem["rpd_cott_ind"].Text == "COTT")
{
dataItem["rpd_cott_ind"].BackColor = System.Drawing.Color.Brown;
dataItem["rpd_cott_ind"].Font.Bold = true;
}
}
}
Thanks,
PJ.