Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initializing drop down lists to blank
Message
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:
01129645
Message ID:
01130396
Views:
14
Linda,

>I have a drop down list that gets its values from a table. I would like it to be blank if the user has not selected a value. Is there any way to do that without adding a blank value to the table? I tried setting the text property to "" and got an error message.

You can set the SelectedIndex of the control to -1.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform