Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop down list initial value
Message
From
24/07/2006 13:32:14
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01139244
Message ID:
01139296
Views:
14
Linda,

Try this:

this.MmDropDownList1.Items.Add(new ListItem("FirstEntry", "0"));
HTH

Rex

>I would like to have my drop down lists be blank when a user first enters a screen. I set the SelectedIndex property to -1 in the load of the form but they still show a value in the box. Do I have to add a blank option to the item list?
>
>Thanks.
>
>Linda
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform