Although the solution provided would work, the order of the backcolor of the datarows would change when the grid is sorted. I would suggest you use the DataRowTemplateStyles property instead to alternate the color of the DataRows. For example:
gridControl1.DataRowTemplateStyles.Add( new VisualGridElementStyle() ); gridControl1.DataRowTemplateStyles.Add( new VisualGridElementStyle() );
The code above assumes that the BackColor property of the DataRowTemplate is NOT set. If it is set, then all the rows will have the backcolor of the DataRowTemplate regardless of the backcolors specified via the DataRowTemplateStyles.