Bill,
I tried it using completely the designer.
I opened the data -> datasource and selected in that wizard the NorthWind
database with the tables customers and customerorders.
Than I dragged a datagridview on my form
I set the properties datasource of that (opening that property until I had
by clicking the plus buttons the order table).
After that I opened the edit columns with the link at the bottom. I choise
the idcustomercolumn and said that it was a combobox. I set for that the
datasource to the customer table and set as well the displaymember to
customername and the valuemember to customerid
Than I started debug and it was running showing a nice datagridview with a
combobox with the names of the customers in it, that I could select to
change those.
I hope this helps,
Cor
<bi*********@gmail.com> schreef in bericht
news:11**********************@g47g2000cwa.googlegr oups.com...
Cor & Ken,
Thanks for the input. I didn't take the time to read the msdn link
yet but will check it out later today. To clarify my statement above: I
actually am trying to build the Combo box inside the data grid.
Playing with Visual Studio 2005 is a little different and takes some
effort getting use to. At first I didn't like it but as I make
progress, I'm liking it more and more. Using the "Data Source window" I
was able to accomplish most of my task. Here is what I did: Open data
source window, using the add connection wizard (displayed at top of the
window), established and complete the steps for a connection to DB
tables of interest, now select one of the tables displayed in the Data
Source window and expand it to display all the fields, select one of
the fields and click on the down arrow attached to the right side of
it, select combo-box, drag the table onto the form. The grid now has
data source attached and combo-box inside of it. The next trick I still
have to due is attached the second table to the "items" property
associated with my combo box field.