By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,452 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,452 IT Pros & Developers. It's quick & easy.

SqldataSource with a dropdownlist

P: n/a
Hello all
I have some dropdownlist and I use sqldatasource to fill it , and it's work correctly , but I want to add empty item to the dropdownlist , but I dont know how to do that , please if any body get what I mean and can help me please send me
Regards
Mostafa
Jul 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jul 2, 11:57*am, mostafa hamdy wrote:
Hello all
I have some dropdownlist and I use sqldatasource to fill it , and it's work correctly , but I want to add empty item to the dropdownlist , but I dont know how to do that , please if any body get what I mean and can help me please send me
Regards
Mostafa
MyDropDownList.Items.Insert(0, "");

The arguments are the index to insert the item at (zero) and a set of
double quotes to represent a blank item.
Jul 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.