Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListIndex vs SelectedIndex
Message
From
14/02/2005 10:18:12
 
 
To
14/02/2005 10:07:29
Dave Sonier
Technologies Nter inc.
Gatineau, Quebec, Canada
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00986634
Message ID:
00986640
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform