Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListIndex vs SelectedIndex
Message
De
14/02/2005 10:18:12
 
 
À
14/02/2005 10:07:29
Dave Sonier
Technologies Nter inc.
Gatineau, Québec, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00986634
Message ID:
00986640
Vues:
32
Dave,

This is gonna sound weird, but try setting the .SelectedIndex to -1 twice. Sometimes it's necessary to do that, and I've never figured out why.

Oh, and you might want to try .Text = "" also.

~~Bonnie


>Hi,
>
>With the ComboBox...
>
>What is the equivalent code of ListIndex in Vb.Net ?
>
>I tried SelectedIndex property but it's not work. I still see the text in the combobox.
>
>Here's my code...
>
>'Fill ManPowerCtrl
> With ManPowerCtrl
> .DataSource = mManPowerDal.GetManPowerAvailableByCriteria(mManPowerDate, mManPowerShift).Tables(0)
> .DisplayMember = ManPowerDAL.ManPowerEmploye
> .ValueMember = ManPowerDAL.ManPowerIdEffectif
> .SelectedIndex = -1
> End With
>
>
>Thank in advance...
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