Sets the number of columns that a field spans in a GridLayout control.

Applies To

Field controls in a GridLayout control on a page.

Property Values

An integer that specifies the number of columns to span the field.

Remarks

When you set a field to span several columns, the field occupies the cells to its right, and existing fields in the occupied cells are moved to the right. For example, the following figure illustrates a GridLayout control that consists of four fields arranged in two rows.

GridLayout of 4 fields in 2 rows and 2 columns

If you set Field 1 to span two columns, then the following layout is displayed:

GridLayout showing column span
Important
The ColumnSpan property is not supported by the Microsoft Dynamics NAV Web client. If the page displays in the Microsoft Dynamics NAV Web client, the property is ignored and the field will not span any columns.

See Also