Wednesday, February 4, 2015

alternating row colors at a DevExpress grid

The last two assignments use the System.Drawing namespace while the first needs DevExpress.Utils:

MyGrid.Styles.AlternatingRow.Enabled = DefaultBoolean.True;
MyGrid.Styles.AlternatingRow.BackColor = ColorTranslator.FromHtml("#C6C4d7");
MyGrid.Styles.Row.BackColor = Color.White;

No comments:

Post a Comment