DesktopListBox.ColumnTypeAt

From Xojo Documentation

aDesktopListBox.ColumnTypeAt(columnNumber as Integer) = newDesktopListBox.CellTypesValue
or
DesktopListBox.CellTypesValue = aDesktopListBox.ColumnTypeAt(columnNumber as Integer)

New in 2021r3

Supported for all project types and targets.

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

Notes

Column types are set using DesktopListBox.CellTypes.


Examples

The following makes a column editable:

lb1.ColumnTypeAt(1) = DesktopListBox.CellTypes.TextField

Disclosure triangles don't work in hierarchical ListBoxes if the CellType is TextField or TextArea. ColumnTypeAt can be overridden by CellType.

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

Me.ColumnTypeAt(4) = DesktopListbox.CellTypes.Checkbox
Me.CellCheckBoxStateAt(0, 4) = DesktopCheckBox.VisualStates.Indeterminate
Me.CellCheckBoxStateAt(1, 4) = DesktopCheckbox.VisualStates.Checked

.

See Also

CellCheckBoxStateAt.