Skip to main content
A newer version of this page is available. .

MultiColumn.Mode Property

Gets or sets the mode in which the multicolumn reports will be printed.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[DefaultValue(MultiColumnMode.None)]
public MultiColumnMode Mode { get; set; }

Property Value

Type Default Description
MultiColumnMode **None**

One of the MultiColumnMode enumeration’s values which specifies the multicolumn mode.

Available values:

Name Description
None

Multicolumn printing is disabled.

UseColumnCount

Multicolumn printing is enabled and uses the MultiColumn.ColumnCount property’s value. The MultiColumn.ColumnWidth property’s value is ignored in this case, and the width of the columns is calculated automatically based upon the MultiColumn.ColumnCount property’s value and the page’s width.

UseColumnWidth

Multicolumn printing is enabled and uses the MultiColumn.ColumnWidth property’s value. The MultiColumn.ColumnCount property’s value is ignored in this case, and the number of the columns is calculated automatically based upon the MultiColumn.ColumnWidth property’s value and the page’s width.

Remarks

Use the Mode property to specify which of the MultiColumn class’s properties should be taken into account when printing multicolumn reports. If this property’s value is set to UseColumnCount, then the MultiColumn.ColumnCount property is taken into account, and the MultiColumn.ColumnWidth property is ignored; if this property’s value is set to UseColumnWidth, then the MultiColumn.ColumnWidth property is taken into account, and the MultiColumn.ColumnCount property is ignored. To disable multicolumn printing the Mode property should be set to None.

Note: If the MultiColumnMode property is set to None, and one of the MultiColumn.ColumnCount or MultiColumn.ColumnWidth property’s value is changed, then the MultiColumnMode is automatically set to either UseColumnCount or UseColumnWidth, correspondingly.

To learn more about using this property in XtraReports see the Creating a Multi-Column Report topic.

See Also