piAlternateRowBackgroundColor - cCJGrid
The background color of every second grid row
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer piAlternateRowBackgroundColor
| Access Type | Syntax |
|---|---|
| Read Access: | Get piAlternateRowBackgroundColor to IntegerVariable |
| Write Access: | Set piAlternateRowBackgroundColor to IntegerVariable/Value |
Description
This color is used as the backcolor color for every second row in the grid (i.e. the even rows).
You must set pbUseAlternateRowBackgroundColor to True in order for this color to be used.
Odd numbered rows will be painted using the normal grid background color as defined by the Color property.
Default is clNone.
This is passed a single value representing an RGB color, which can be a constant representing a Standard Color or a System Color, or a set of R, G and B values. Individual Red, Green, and Blue colors are converted to a single value by using the RGB function.
Set piAlternateRowBackgroundColor to (rgb(255, 0, 0)) // red
Set piAlternateRowBackgroundColor to clPurple
Set piAlternateRowBackgroundColor to clBtnFace
This color only works with the following peColumnStyles: xtpColumnShaded, xtpColumnFlat and xtpColumnExplorer.
See Also