Home Search

DriveWorks Pro 22
Column Widths

Send Feedback

Column Widths

The Column Width property sets the width for all columns in the data control. A single value will apply to all columns. Multiple values seperated by the "|" symbol will set each column individually.

Property Type: Dynamic

Default Value: No default value is applied to this property

Hierarchical Reference: ControlName.ColumnWidths

To Change the Default Value

The default value of the property can be changed by any of the following methods:

  • 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

Column Widths Property Value (static)Result
No value set will auto-size each visible column.
DriveWorks Administrator the auto-size will be based on the content of the column cells.

DriveWorks Live the auto-size is set to a pre-defined value of 150px.

16Supplying a column width between 1 and 19 (inclusive); will automatically default to the minimum width of 20 for all visible columns.
50Sets all visible columns to 50 wide.
50|75|25|50For all visible columns; will set column 1 to 50, column 2 to 75, column 3 to 25 and column 4 to 50. See Note Below.
Show Filler Column Property

When the total width of all displayed columns is less than the width of the control and the Show Filler Column property is True (default) a filler column will be applied to the control.

When the Show Filler Column property is False the last column will expand to fill the control regardless of the column width applied.

Hidden Fields Property

Columns removed from view by the Hidden Fields property will be ignored, when settings multiple values (as in the last example above). This behavior is consistent in DriveWorks Administrator, User and Live.

A rule can also be built for this property by changing the type to dynamic.

See How To: Change A Static Property To A Dynamic Property.

Column Widths Property Value (Dynamic)Result
IF(DWFormContainerWidth<250, 25, 40)

Sets all columns to be 25 when the special variable DWFormContainerWidth is less than 250, otherwise set them to 40.

Value can be controlled by a rule.