accessing bound listbox item

varley

Newcomer
Joined
Jan 24, 2003
Messages
2
i have a databound listbox that i am populating from an Access table w/o any problems. The table only has one field in it so this is a no brainer.

My problem is in getting the selected item from the listbox. when i try this with a .SelectedItem call i get "Cast from type 'DataRowView' to type 'String' is not valid."

I was doing fine getting selected values when using a Collection. My problem just started when i Bound the listbox to a dB table.

I need a clue - Thanks - tom
 
Logically this should work. In fact it was my first try. That is what threw the casting error.
 
Back
Top