Loop through a dataset

Dthomson

New member
Joined
Mar 29, 2005
Messages
2
Programming Experience
1-3
Can anyone help me.
I want to select an item in a list box(filled from a dataset) and see its
corresponding details in some text boxes. I have all the info I need in the dataset I just need to access certain data depending on the item selected in the list box
 
Did you bind the listbox to the datasource or do you "manually" fill it up? Anyways, use the value that listbox.selectedindex returns and then say datasetname.tables("Tablename").rows(value)("Columname")
 
Dthomson said:
Can anyone help me.
I want to select an item in a list box(filled from a dataset) and see its
corresponding details in some text boxes. I have all the info I need in the dataset I just need to access certain data depending on the item selected in the list box

see this one. http://www.vbdotnetforums.com/showthread.php?p=6900#post6900
you get some idea regarding your problem.
 
Back
Top