VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > BackColorAlternate Property |
Returns or sets the background color for alternate rows (set to 0 to disable).
[form!]VSFlexGrid.BackColorAlternate[ = colorref& ]
If you set the BackColorAlternate property to a non-zero value, the color specified is used to paint every other row in the control, creating a checkbook look.
Using this property is faster and more efficient than using the CellBackColor property to paint every other row. Besides, the alternating colors are preserved even if you sort the grid or add and remove rows.
Color
0 (Disabled)