Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView Control
Message
De
14/09/2004 11:47:40
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00941889
Message ID:
00941934
Vues:
9
Yes, sorry Einar ... I thought I had typed Count - 1 (hadn't had my coffee yet at that point <g>)


>Bonnie,
>Thanks for the reply. This should work except I need to use count-1 because of the zero based indexing. Correct?
>
>int count = this.MyListView.Items.Count;
>this.MyListView.Items[count - 1].Selected = true;
>
>
>Einar
>
>>>How do I go to (select) the last item in the Items collection at runtime in a ListView control?
>>
>>int count = this.MyListView.Items.Count;
>>this.MyListView.Items[count].Selected = true;
>>
>>
>>~~Bonnie
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