Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DropDownList Binding
Message
De
13/09/2010 08:05:59
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
DropDownList Binding
Divers
Thread ID:
01480952
Message ID:
01480952
Vues:
99
Hi,

I'm struggling with the simplest thing in a .NET Winforms application. I have a field in a table that can take one of two text strings, say "A" or "B".

I want to use a combobox/dropdownlist for the user to select which one. My problem is getting the combo to show the correct value when skipping through the records. What I have done so far is set my Items collection for the combo to the values I want. But I am unsure of what I need to set to tell the control to display the value in my Client.ClientType business object. There are various properties:

BindingSource - which I set to "Client" and am pretty sure that is correct.
BindingSourceDisplayMember
BindingSourceValue
BindingValueSource

I am not sure if these are properties native to the .NET combo or if they are part of MM .NET.

I have seen some code for a combo on a web form that manually sets the combo's DisplayValue whenever a new record gets displayed. Is that the way I will need to do this?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform