Do you get an exception? What does the combo display? Check field names and
that data is actually present in the table.
--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"Johan Goris" <(E-Mail Removed)> wrote in message
news:5o2dnew-(E-Mail Removed)...
> I've tried to use a dataset as datasource for a combobox in the following
> manner:
>
>
>
> private void button1_Click(object sender, System.EventArgs e)
>
> {
>
> Classes.ProdOrders pr = new Classes.ProdOrders();
>
> comboBox1.DataSource = pr.GiveList(1).Tables[0]; // a datasource is made,
> sql is excecuted with a table with id and prodorder.
>
> comboBox1.ValueMember = "id";
>
> comboBox1.DisplayMember = "prodorder"; // can not bind!
>
> }
>
>
>
> But it cannot bind. What is wrong?
>
>
>
>