WebListBox.ColumnCount

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aWebListBox.ColumnCount = newIntegerValue
or
IntegerValue = aWebListBox.ColumnCount

New in 2010r4

Supported for all project types and targets.

Gets or sets the number of columns in the ListBox. ColumnCount is 1-based.

Notes

This property cannot be changed after the Opening event.

Example

Setting the number of columns to 2 in the Open event:

Me.ColumnCount = 2


Iterating through the rows and columns to set the cell values:

// Add 5 Rows
For i As Integer = 1 To 5
ListBox1.AddRow("")
Next

For row As Integer = 0 To ListBox1.RowCount - 1
For col As Integer = 0 To ListBox1.ColumnCount - 1
ListBox1.CellValueAt(row, col) = row.ToString + "," + col.ToString
Next
Next