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
The default value of the property can be changed by any of the following methods:
|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.
|16||Supplying a column width between 1 and 19 (inclusive); will automatically default to the minimum width of 20 for all visible columns.|
|50||Sets all visible columns to 50 wide.|
|50|75|25|50||For 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.|
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.