Home Search

DriveWorks Pro 24
Row Background Colors

Send Feedback

Row Background Colors

Controls the background color of all rows, except the header row.

Property Type: Dynamic

Default Value: White

By default the row background color is set to the same value as the background color for the user form the control exists on.

Hierarchical Reference: ControlName.RowBackgroundColor

This property requires a Web Safe Color name or a hexadecimal color value to be set.

To Change the Default Value

The default value of the property can be changed by:

  • Enter the required value directly into the enabled property field.
    1. Click in the property for the control to be changed.
    2. Type the required value directly into the property field.
  • Activate the rule builder.
    1. Click in the property for the control to be changed.
    2. Click the build button at the end of the property field to launch the rule builder .
    3. Enter the rule in the rule editor and click OK to apply.

Examples

Row Background Colors Property ValueResult
WhiteChanges the color of all rows to white
#644B47Changes the color of all rows to be the color of the hexadecimal value #644B47
"WhiteSmoke|White|AliceBlue"Applies WhiteSmoke to the first row, White to the second row and AliceBlue to the third row.

This pattern is repeated for all subsequent rows.

"#ffe0c0|#ffc080"Applies #ffe0c0 to the first row and #ffc080 to the second row.

This pattern is repeated for all subsequent rows.

Web Safe Colors

When selecting a color, we strongly recommend using colors selected only from the Web or Custom tabs, or manually entering as a hexadecimal value (for example #000000 for black).

Named colors selected from the System tab (for example ControlText) are very unreliable.

System colors were deprecated in CSS 2.1, and should be avoided.

Default Property values that previously used a System color (for example ControlText) were replaced with safe alternatives in DriveWorks 22.0.

New Controls added from this version onwards no longer use System colors by default.

Existing Controls created before this version will still have the old System color defaults applied but from DriveWorks 24.1, a conversion will automatically be applied wherever the user form is rendered.

When using a version prior to DriveWorks 24.1 with controls that have System colors applied, we suggest replacing these with alternative web safe values.

For a complete list of conversions applied to System colors please see System Color Conversion.

Value can be controlled by a rule.