Hi,
I have a two level hierarchical grid where I need to apply some logic at ItemDataBound etc.
On my ItemDataBound event I check whether a column contains a specific value and based on that I change the font color:
This is working great but is causing some issue when I expand the child (details) table since the child table does not contain that column.
Is there a way to check whether e.Item is from the "parent" table and not details table?
Thanks
I have a two level hierarchical grid where I need to apply some logic at ItemDataBound etc.
On my ItemDataBound event I check whether a column contains a specific value and based on that I change the font color:
protected void grdCurrentGarnishee_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridDataItem) { var item = e.Item as GridDataItem; if (item["ValidationState"].Text == "UNMATCHED") { item.ForeColor = System.Drawing.Color.Red; } } }This is working great but is causing some issue when I expand the child (details) table since the child table does not contain that column.
Is there a way to check whether e.Item is from the "parent" table and not details table?
Thanks