Normally, we would recommend you handle PrepareViewStyleInfo to alternately color rows, but in the current release (RC2) of GridDataBoundGrid, this event is not being fired.
So, for the time being, you can do this by handling QueryCellInfo instead. Here are some code snippets.
//hook the handler in Form_Load...
this.gridDataBoundGrid2.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(HandleQueryCellInfo);
//the handler
private void HandleQueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if(e.ColIndex > 0 && e.RowIndex > 0)
{
if(e.RowIndex % 2 == 0)
e.Style.BackColor = Color.Red;
else
e.Style.BackColor = Color.Blue;
e.Handled = true;
}
}