Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use list box in vb with 3 multiple columns (in code)

Status
Not open for further replies.

YanaD

Programmer
Mar 22, 2001
38
US
I need to create list box that will have 3 columns where 1st column will be available and visible in the list and 2 more will be hided where i store id. Looking to this hided id, i will do my search.
Help me with it. This is urgent.
 
If the data you want to store (invisible data) is of type 'long' then you could use the 'itemdata' property of the listbox.
 
Thanx TomSnider, but can you be more specific, i need to know how to display 3 columns in a list box, but data will be from recordset, not to use "AddItem". Maybe i have to use dblist instead of list box. But if i will use dblist box, how should i have 3 columns data (first column should be available to user, and 2 more that holds ids should be not visible. In Access it is easy, but how to do in VB)
 
Sorry for the delay....I would probably use a Grid instead of a listbox. I use vsFlexGridPro and I know that you can make columns invisible with it. Why do you feel the need to use a listbox?
 
ok. If you have some samples with msflexgrid that has 2 or 3 col of data (id, category, descr). How to fill out the grid with the data from recordset. If you have a code, can you please provide it to me. Thanx a million.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top