Re: How to Data Bind (C# or VB) a ComboBox?



jp2msft wrote:
I've got an SqlDataAdapter

There was no way for you to know it (except maybe by browsing through
some of the previous questions in this newsgroup before posting yours -
always a recommended practice) , but this is a classic ADO newsgroup.
ADO.Net bears very little resemblance to classic ADO so, while you may
be lucky enough to find a dotnet-knowledgeable person here who can
answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.public.dotnet.framework.adonet.


da1 that fills with data from our Employee
database.

I'd like to bind columns from da1 to ComboBoxes on my form, but all
the examples only show how to data bind the entire DataGrid.

How do I data bind a single control?

Frankly, I don't understand the problem. Just set the properties of the
control to point at the datasource, and since it's a combo box, set its
text and value properties to the appropriate fields from the data
source. If that's not enough to get you going, provide more details to
the dotnet group you post to.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Mahjong FAQs
    ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... American Mah-Jongg FAQs ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Mah-Jong FAQs updated
    ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... American Mah-Jongg FAQs ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Majiang FAQs
    ... FAQ 25 - Added a followup Q&A about different Japanese scoring charts. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Mah-Jongg FAQs updated
    ... FAQ 7f - Added a site that makes an American mah-jongg table expander. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)
  • Mah-Jongg FAQs updated
    ... FAQ 7f - Added a Chinese manufacturer of automatic mahjong tables. ... Introduction to Mah-Jongg Newsgroup ... FAQ11b Origins: Precursor Games ... NEWSGROUP POSTING ARCHIVES: ...
    (rec.games.mahjong)