windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-ffc28171.md
Gets or sets whether to arrange items across multiple columns if the ListBox cannot fit all items vertically.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool MultiColumn { get; set; }
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Overridable Property MultiColumn As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to arrange items across multiple columns; otherwise, false.
|
Set the MultiColumn property to true to arrange items across multiple columns if the ListBox cannot fit all items vertically. The number of columns dependents on the ListBox control’s width and ColumnWidth setting:
The ColumnWidth property specifies the column width in pixels. If this property is not specified, the Listbox control automatically calculates the column width based on the width of the longest item.
listBoxControl1.MultiColumn = true;
listBoxControl1.ColumnWidth = 150;
listBoxControl1.MultiColumn = True
listBoxControl1.ColumnWidth = 150
See Also