F
fedrok
Hi to you all.
I'm trying to read a Ms Access table using strongly typed Dataset in Vs2005.
So I assign the datasource property of a combobox in the following mode:
---------------
myCombo.DataSource = MyDataTable
myCombo.ValueMember = MyDataTable.Columns(0).ColumnName
myCombo.DisplayMember = MyDataTable.Columns(0).ColumnName
----
But the problem is that DisplayMember property seems to not work.
I obtain a combobox with ValueMember correctly set, but all visible values
are empty strings.
Why doesn't DisplayMember works?
I'm not using "order by" clause in the query and not using sorted property
of combobox object.
Can you help me?
thanks.
I'm trying to read a Ms Access table using strongly typed Dataset in Vs2005.
So I assign the datasource property of a combobox in the following mode:
---------------
myCombo.DataSource = MyDataTable
myCombo.ValueMember = MyDataTable.Columns(0).ColumnName
myCombo.DisplayMember = MyDataTable.Columns(0).ColumnName
----
But the problem is that DisplayMember property seems to not work.
I obtain a combobox with ValueMember correctly set, but all visible values
are empty strings.
Why doesn't DisplayMember works?
I'm not using "order by" clause in the query and not using sorted property
of combobox object.
Can you help me?
thanks.