Tag value for listBox

  • Thread starter Thread starter Grant
  • Start date Start date
G

Grant

Hello,

Ive got a listbox which is being populated from a dataset table.

When looping through and adding items is there a way to add a tag to the
item just added? I am setting the forms binding context to a value and when
I select a list box item I need to know that tag id (which is the key id
from a table) so that I can populate a different table in the dataset.

Thanks,
Grant
 
Hi Grant
I dont know if this helps but I use a combo box in a similar manner.
I set the item object of the combo and set the displaymember to the property
I want to display.
Then the whole object is stored in the items collection of the combo.
I would think you could do something similar with a listbox.
HTH
JB
 
I didnt think of putting the whole object in there - that works prefectly
and now I can access any of the objects properties I need.

Thanks John.
 
Back
Top