471,337 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

SqldataSource with a dropdownlist

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
1 1175
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.

Similar topics

3 posts views Thread by simonZ | last post: by
2 posts views Thread by Brad Isaacs | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.