null in listbox??

L

lp

why are all my columns null.. when i step through the code?
i.e. lstbox.column(7)

says is = null.. but isn't.. i see the data.. and even if i change the 7 to
another prior # i still get this error msg of null.

thanks in advance.
 
A

Allen Browne

This behavior indicates that you set it up as a multi-select list box.

To access the values of the columns in the selected rows of a multiselect
list box, you must iterate through its ItemsSelected collection, as its
Value will be null
 
Top