E
EMW
I have a dataset containing 1 table with 1 column and I want to put the
values of each row in a combobox.
I've tried this:
Me.cbSitenummers.DataSource = dsShow.Tables(0)
Me.cbSitenummers.DisplayMember = dsShow.Tables(0).Columns(0).Caption
Me.cbSitenummers.ValueMember = dsShow.Tables(0).Columns(0).Caption
But the combobox remains empty and DataSource = nothing.
I know the dataset is filled, because the DisplayMember and ValueMember
properties are set to the rigth column name.
What am I doing wrong?
rg,
Eric
values of each row in a combobox.
I've tried this:
Me.cbSitenummers.DataSource = dsShow.Tables(0)
Me.cbSitenummers.DisplayMember = dsShow.Tables(0).Columns(0).Caption
Me.cbSitenummers.ValueMember = dsShow.Tables(0).Columns(0).Caption
But the combobox remains empty and DataSource = nothing.
I know the dataset is filled, because the DisplayMember and ValueMember
properties are set to the rigth column name.
What am I doing wrong?
rg,
Eric