Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmCheckedListBox
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00858820
Message ID:
00859352
Vues:
11
>You can set the BindingSource, BindingSourceDisplayMember, and >BindingSourceValueMember properties as you normally would in a combo box or >list box. If you allow more than one box to be checked you can examine the >control's ObjectCollection, CheckedItemCollection, and >CheckedIndexCollection properties. For more details, see the .NET Help >topic "CheckedListBox Class".

I have 3 tables: USERS, OPTIONS, USEROPTION (Cross Reference Table between USERS and OPTIONS). I want to make a checked list box with the list of all options and save the checked options to USEROPTION table. The BindingSource is "OptionDataObj", BindingSourceDisplayMember is "OptionDescription" and BindingSourceValueMember is "OptionPK". What do I put into BindingValueSource and BindingValueSourceMember?

How much code do I need to write to initialize the checked item and save the result to UserOption table? Do I need to write code to loop through the collections your mentioned above and write the data to SQL one-by-one?

Stephen
Stephen Lee

--------------------------------
Too much to code
Too little time
--------------------------------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform