D
David L Wright II
I have a data bound listbox that I want to select multiple lines then
process each line.
I bound a two column datatable to the listbox and set the DisplayMember
property to the appropriate column of the datatable. I set the
SelectionMode property to MultiExtended.
I am able to load and select multiple lines in the listbox but I can not
figure out how to retrieve both columns for each line selected in the
listbox. I know that there is a SelectedItems collection that contains the
lines selected in the list box but I cannot retrieve both columns for each
item in the SelectedItems collection.
Does anyone know how to accomplish this?
Thanks
process each line.
I bound a two column datatable to the listbox and set the DisplayMember
property to the appropriate column of the datatable. I set the
SelectionMode property to MultiExtended.
I am able to load and select multiple lines in the listbox but I can not
figure out how to retrieve both columns for each line selected in the
listbox. I know that there is a SelectedItems collection that contains the
lines selected in the list box but I cannot retrieve both columns for each
item in the SelectedItems collection.
Does anyone know how to accomplish this?
Thanks