Hi Al,
Inline, please.
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, AND MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Al Wilkerson" <> wrote in message
news:z1Dld.503566$mD.127480@attbi_s02...
> Hey,
>
> I'm trying to populate a combBox in C# with values from an Access DB
> table.
>
>
> myDataAdapter.Fill(myDS);
>
> comboBox1.DataSource = myDS; // My dataSet
> comboBox1.DataMember = "Compan Name"; // This is the column display
> name
> comboBox1.ValueMember = "CompanyName"; // This is the actual column
> name that holds the values I want
>
Try this:
ComboBox1.DataSource = myDS.Customers; // ...or whatever the table is
called
ComboBox1.DisplayMember = "Compan Name";
ComboBox1.ValueMember = "CompanyName";
> Error message says: "Argument Exception: Could not bind to the new display
> member. Parameter name: newDisplayMember"
>
>
> What am I doing wrong ?
>
> Thanks,
>
> --
> Al
>