DynamicBackColor, DynamicForeColor Properties

Example   Applies To   See Also

Specifies the background and foreground colors of a Column object. The colors are re-evaluated at run time each time the Grid control is refreshed. Available at design time; read-write at run time.

Syntax

Column.DynamicBackColor[ = cExpression]
Column.DynamicForeColor[ = cExpression]

Settings

cExpression

Specifies an expression in quotation marks that is re-evaluated at run time whenever the Grid control is refreshed. The run-time evaluation must result in a single color value.

Remarks

You can use the DynamicBackColor and DynamicForeColor properties to create special effects, such as displaying the odd-numbered rows in green and the even-numbered rows in gray.