954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Populate Listboxes with table data

I am attempting to populate a listbox with data from a table and don't have the methods .dataValueField or .dataTextField or .DataBind in my selection menu. Can anybody help me understand why? ex. lstServices.DataValueField = "item#"

vbnewbie
Newbie Poster
1 post since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

To populate a listbox use something like this:

lstServices.items.add("xxx").


That will add the item "xxx" to it.

williamrojas78
Junior Poster
111 posts since Jun 2005
Reputation Points: 23
Solved Threads: 10
 

I mean, you have to connect to the table, and get the data from the field, and then add it to the listbox.

williamrojas78
Junior Poster
111 posts since Jun 2005
Reputation Points: 23
Solved Threads: 10
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You