Hi friends,
Please update me that,
How to add empty list in dropdownlist in C#.NET, when I fill that combo from data reader.
Thanks,
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted Apr 4, 2012, 6:16 AM
the use of
AppendDataBoundItems="True"And then when you bind, the bound items are put after the empty item rather than replacing it.
Pls refer this url
http://stackoverflow.com/questions/679128/add-empty-item-to-dropdownlist-of-custom-objects-in-c-sharp
Thanks!
Manikandan ChandranPosted Apr 4, 2012, 10:25 AM
SenthilkumarPosted Apr 4, 2012, 6:59 AM
Place the drop down control in your design page.
You no need to add any thing. But if you want to add the default text then
When click on some thing or based on the other event, if you want to load the data into the drop down list then
Hope this help you.