AlternateRowColor Property

The AlternateRowColor property enables you to make alternate rows in an HTML Table different colors (useful for "ledger-formatted" output). For example, you could set up your table to have alternating white and green rows. For more information, see Defining Colors for Your Form and Controls.

Note: Avoid using a dithered background color since text is often not as readable when displayed on top of it.

For HTMLTable only, you can also set this property using a cascading style sheet. For more information, see Using Cascading Style Sheets.

Applies to: Grids and HTML Tables.

Setting dynamically:

form.control.SETALTERNATEROWCOLOR(amount_of_red, amount_of_green,  amount_of_blue);

Property Settings:


Sets the alternate row color to be the same as BackColor (which means you have no alternate row color), if you do not have a cascading style sheet applied to your form. Otherwise, it uses the setting in the cascading style sheet.

amount_of_red, amount_of_green, amount_of_blue

Sets the alternate row to be the color defined by the amount of red, green, and blue.