1 Replies - 3549 Views - Last Post: 05 May 2010 - 01:37 AM Rate Topic: -----

#1 lanz80  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-May 10

Load values of a comboBox from a TableAdapter

Posted 05 May 2010 - 01:02 AM

Hi,

I would like to how I can load a set of values in a comboBox from a TableAdapter. I have the tableAdapter method to read the data , (in this case GetDataByStreet)--> Me.StreetsTableAdapter.GetDataByStreet()

But I don't know how to assign the sentence to the comboBox, in order to load the data set in it.

I have created this code to prove:

 
StreetCombo.DisplayMember = "AreaClasification"
StreetCombo.ValueMember = "AreaClasification"
StreetCombo.DataSource = Me.StreetTableAdapter.GetDataByStreet()



But I doesn´t work because only fills the first index of the comboBox, but not the following values.

Thanks with anticipation.

Regards

This post has been edited by lanz80: 05 May 2010 - 01:42 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Load values of a comboBox from a TableAdapter

#2 Damage  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 27
  • View blog
  • Posts: 1,079
  • Joined: 05-June 08

Re: Load values of a comboBox from a TableAdapter

Posted 05 May 2010 - 01:37 AM

check out this tutorial
http://www.dreaminco...wtopic33908.htm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1