Skip to main content

TcxListBox.Columns Property

Specifies the number of columns visible within the list box.

Declaration

property Columns: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

By default, values in the list box control are arranged into a single column. If values don’t fit into the control’s area, the vertical scrollbar is displayed. This takes place when the Columns property value is 0. The image below displays an example.

If the Columns property is set to a value greater than 0, strings are arranged into columns so that the vertical scrollbar is not required. You can see the content of each column using the horizontal scroll bar in this case. The Columns property value specifies the number of columns displayed within the control simultaneously. The images below display the same list box control with its Columns property set to 2 and 3.

See Also