ListBox.ColumnType

From Xojo Documentation

Property (As Integer )
aListBox.ColumnType(columnNumber as Integer) = newIntegerValue
or
IntegerValue = aListBox.ColumnType(columnNumber as Integer)

Supported for all project types and targets.

Sets the type for the passed column. The first column is numbered zero.

Notes

Use the following class constants to set the ColumnType:

Value Class Constant Description
0 TypeDefault Default column type.
1 TypeNormal Normal column.
2 TypeCheckBox Checkbox column.
3 TypeEditable Inline editable column using a TextField. Use TypeEditableTextField or TypeEditableTextArea instead.
3 TypeEditableTextField Inline editable column using a TextField.
4 TypeEditableTextArea Inline editable column using a TextArea.

Examples

The following makes a column editable:

lb1.ColumnType(1) = ListBox.TypeEditable

Disclosure triangles don't work in hierarchical ListBoxes if Inline Editable is selected. ColumnType can be overridden by CellType.

The following example makes a column a checkbox column and sets two of the values:

Me.ColumnType(4) = Listbox.TypeCheckbox
Me.CellState(0, 4) = CheckBox.CheckedStates.Indeterminate
Me.CellState(1, 4) = checkbox.CheckedStates.Checked
.

See Also

CellState.