Re: How to Data Bind (C# or VB) a ComboBox?
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 17 Jan 2008 16:01:34 -0500
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.
.
- Prev by Date: Inserting and retrieving values
- Next by Date: Re: Inserting and retrieving values
- Previous by thread: Inserting and retrieving values
- Next by thread: Shaping a Shaped Rs
- Index(es):
Relevant Pages
|
|