Hi Ken,
You can handle the PrepareViewStyleInfo event of the grid to do this. Try the below code snippet.
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
GridBoundRecordState state = this.gridDataBoundGrid1.Binder.GetRecordStateAtRowIndex(e.RowIndex);
int levelIndex = state.LevelIndex;
if (levelIndex == 0 && e.RowIndex <= this.gridDataBoundGrid1.Model.Rows.HeaderCount && e.ColIndex > 0)
e.Style.BackColor = Color.Plum;
else if (levelIndex == 1 && e.RowIndex <= this.gridDataBoundGrid1.Model.Rows.HeaderCount && e.ColIndex > 0)
e.Style.BackColor = Color.AliceBlue;
else{}
}
Let me know if you need any further assistance.
Regards,
Rajagopal