Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / June 2005

Tip: Looking for answers? Try searching our database.

DataBindings and DataSource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christopher Weaver - 11 May 2005 22:29 GMT
Can anyone tell me the relationships between the following properties of a
ComboBox:

DataBindings.SelectedItem
DataBindings.SelectedValue
DataBindings.Text
DataBindings.Tag
DataSource
DisplayMember
ValueMember

It seems to me that there would be some conflict here if one were to use all
of these simultaneously.  The SelectedItem, SelectedValue, Tag and Text
properties all allow for the selection of a DataSource and DisplayMember.
ValueMember serves the same purpose as SelectedValue and takes precedence
over it.

Has anyone written a definitive discussion of how these elements relate to
one another?  Would anyone like to now?
Beth Massi [Architect MVP] - 13 May 2005 00:50 GMT
I wrote about a couple combobox use cases here:
http://bethmassi.blogspot.com/2005/04/combobox-databinding-woes.html

HTH,
-B

> Can anyone tell me the relationships between the following properties of a
> ComboBox:
[quoted text clipped - 15 lines]
> Has anyone written a definitive discussion of how these elements relate to
> one another?  Would anyone like to now?
Chris Smith - 20 Jun 2005 14:44 GMT
These are already documented in the MSDN.

But they all work together.

Example.

Datasource, Display member and Value member, set all these to have your
combo box bind the selected datasource, "display" a selected field/property
and have the "value" of the selected field/property when clicked on in the
combobox.

Have a look at the docs, should be explained well there.

Best of luck,

Chris

> Can anyone tell me the relationships between the following properties of a
> ComboBox:
[quoted text clipped - 15 lines]
> Has anyone written a definitive discussion of how these elements relate to
> one another?  Would anyone like to now?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.