Hi David,
Please see the code to change the Color of the odd and even rows in both master and detail table.
void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e)
{
GridTableCellStyleInfo style = (GridTableCellStyleInfo)e.Inner.Style;
if (style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell)
{
e.Inner.Style.BackColor = Color.Lavender;
}
if (style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell )
{
e.Inner.Style.BackColor = Color.PaleGoldenrod;
}
}
Sample attached.
Regards,
Jisha
CS_13297ed5.zip