loading a combobox with Listarray

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

Join Date: May 2005
Posts: 12
Reputation: Robert Walker is an unknown quantity at this point 
Solved Threads: 0
Robert Walker Robert Walker is offline Offline
Newbie Poster

loading a combobox with Listarray

 
0
  #1
Jun 9th, 2005
when running program I can see all 9 items of data are loaded into myComboBox, but when it displays on the screen all I get is 9 instances of "Test1.Global+ListCodes". What do I need to use in the DisplayMember spot?
I've tried original field name of "Name1", "test.codeName"

PublicStructure ListCodes
Public codeName AsString
Public codeValue AsString
EndStructure

...
Dim myData AsNew ArrayList
Dim test As ListCodes

While myReader.Read()
test = New ListCodes
test.codeName = myReader.Item(0)
test.codeValue = myReader.Item(1)
myData.Add(test)
EndWhile

myComboBox.DataSource = myData
myComboBox.DisplayMember = ??????
Reply With Quote Quick reply to this message  
Reply

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


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