Sub Open() Handles Open
me.AddRow ""
Me.CellType(0, 1) = Listbox.TypeEditableTextField
End Sub Me.AddRow “” adds only one cell in column 0. There is no content set for the cell in column 1, so you cannot access any property which starts with Cell… and has to do with the content, like Cell itself, CellTag, CellHelpTag, etc. And this is all independent of ColumnCount.
Btw the ListBox is set as a three column ListBox, so addRow adds a row with three cells, and therefore the cell exists, independent of wether it contains data or not.
Then I would expect an exception when clicking on column 1 (aka the second column) to edit the cell, but I don’t get one.
I also should not get a three column heading (with HasHeading enabled) if that were true, but I do (so why a column heading if the column doesn’t exist?)
The contents of the cells in column 1 and 2 might be Nil (and that might explain why they do not show up in the debugger), but they do exist.
I can of course be wrong (I often enough am), but the contortions necessary behind the scenes if you only add the column on request of a cell rather when the ListBox opens according to the settings seem strange.