Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox problems
Message
 
To
02/03/2005 15:36:11
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00992047
Message ID:
00992165
Views:
20
>Chad,
>
>Well, whaddaya know? It actually works! Very strange ... I don't know why setting the .SelectedIndex to 0 prior to setting the DataSource to null would make the difference, but it does. The weird thing is that as soon as you set the DataSource to null, the .SelectedIndex goes to -1 (which I would expect) ... so how the heck does setting it to 0 before it goes to -1 make it work?
>
>Very, very peculiar!!
>
>~~Bonnie

Bonnie,

I'm not real sure either as I am not currently developing in .NET, but I'm glad it works for you too and not just an oddity on my machine. ;)
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform