Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking if a particular item is checked
Message
De
02/01/2005 10:39:15
 
 
À
02/01/2005 01:56:29
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00973682
Message ID:
00973700
Vues:
18
This message has been marked as the solution to the initial question of the thread.
There's a .GetItemChecked() method that returns whether the item is checked or not.

~~Bonnie


>I have a CheckListbox control on the form which includes an undefined number of items. Some may be checked and some not. I don't want to use the CheckedItems property to scan thru the items. I only want to detect if a particular item is checked or not. All the samples I have found on the NET deals with the CheckedItems property and looping thru each of them to recollect back the indice of the item we are looking for. But, I need a direct way to locate a particular indice in the collection and know if it has been checked or not.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform