Hi Tannearu,
You can handle the TableControlPrepareViewStyleInfo event and conditionally changing the backcolor of the row. Here is a code snippet to show this.
private void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e)
{
GridTableCellStyleInfo info = e.Inner.Style as GridTableCellStyleInfo;
Element el = info.TableCellIdentity.DisplayElement;
if( el != null && el.Kind == DisplayElementKind.Record)
{
GridRecordRow row = el as GridRecordRow;
if( row != null && row.ParentRecord != null)
{
object obj = row.ParentRecord.GetValue("EmpName");
if( obj != null && obj.ToString() == "Hazart")
{
e.Inner.Style.BackColor = Color.Red;
}
else
e.Inner.Style.BackColor = Color.AliceBlue;
}
}
}
Here is a sample.
GGCRowColor.zipBest Regards,
Haneef