DynamicForeColor Property
Dynamically Set The Foreground Color For a Grid Or Browse Cell

 

 

  

Syntax:

 

DynamicForeColor <abValues>

 

Specifies a codeblock array (one element per column) evaluated for each cell at any Grid or Browse change to determine the foreground color.

 

This.CellRowIndex, This.CellColIndex and This.CellValue variables are available at codeblock evaluation.

 

 

Sample:

 

      bColor := { || if ( This.CellRowIndex/2 == int(This.CellRowIndex/2) , ;

      {128,128,128} , {192,192,192} ) }

 

      DYNAMICBACKCOLOR { bColor , bColor, bColor, bColor, bColor, bColor }

 

See   \hmg\samples\grid\grid_10

      \hmg\samples\grid\grid_11

      \hmg\samples\grid\grid_12