DriveWorks Pro 15: Column Width [send feedback...]

Column Width

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.ColumnWidth

To Change the Default Value

Ensure the property is a static property (It will display the gray orb alongside the property name)

The default value of the static property can be changed by typing the required value directly into the property field.

  1. Click in the property for the control to be changed.
  2. Type the required value directly into the property field.

Examples

Column Width 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.
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.

Prior to DriveWorks 12 Service Pack 2 Hidden Fields were not ignored in DriveWorks Administrator and User.

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 Width 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.

Table of Contents