Populate Listboxes with table data

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 1
Reputation: vbnewbie is an unknown quantity at this point 
Solved Threads: 0
vbnewbie vbnewbie is offline Offline
Newbie Poster

Populate Listboxes with table data

 
0
  #1
Jun 29th, 2006
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#"
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 85
Reputation: williamrojas78 is an unknown quantity at this point 
Solved Threads: 4
williamrojas78's Avatar
williamrojas78 williamrojas78 is offline Offline
Junior Poster in Training

Re: Populate Listboxes with table data

 
0
  #2
Jun 30th, 2006
To populate a listbox use something like this:

  1.  
  2. lstServices.items.add("xxx").

That will add the item "xxx" to it.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 85
Reputation: williamrojas78 is an unknown quantity at this point 
Solved Threads: 4
williamrojas78's Avatar
williamrojas78 williamrojas78 is offline Offline
Junior Poster in Training

Re: Populate Listboxes with table data

 
0
  #3
Jun 30th, 2006
I mean, you have to connect to the table, and get the data from the field, and then add it to the listbox.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3844 | Replies: 2
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC