HotXLS Docs

AlternatingColor property

Specifies the zebra-stripe fill for odd detail rows of a dataset export. Read/write TXLSDataExportColor; the default is xlsDataExportNoColor, which disables the stripe

Remarks

The stripe is painted on the first, third, and later odd detail records across the exported field columns. DetailColor still fills the remaining detail rows, so the two properties form one alternating pattern when both are set. Assign xlsDataExportNoColor to turn the stripe off without changing the other colors. The color follows the same platform rules as the other export colors; see font descriptions and color aliases

Syntax

property AlternatingColor: TXLSDataExportColor;

Example

This example paints odd detail rows light grey while the other rows keep the detail color

DataToXLS1.AlternatingColor := clSilver;