List Box SelectedID...

K

Kishor

Hi,

I am having a Listbox on a windows form. I am populating the list box using
this code



lstExam.DataSource = odataview

lstExam.ValueMember = "EXAMID"

lstExam.DisplayMember = "EXAMNAME"





This list box allows multiselect,



I wanted to some help from you people. How do I get a list of selected Itsms
ID. In my case EXAMID.



TIA

Kishor
 
P

Patrick Steele [MVP]

This list box allows multiselect,



I wanted to some help from you people. How do I get a list of selected Itsms
ID. In my case EXAMID.

See the "SelectedItems" property of the ListBox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top