Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get number of items in dropdownlist???

Status
Not open for further replies.

passs

Programmer
Dec 29, 2003
170
RU
Hello,
May be someone know how to delete all the items from dropdownlist. I do not know how many items it has, so there is a problem. I'm adding items automaticaly from DB and then in another request i need to delete all items from it and then to add again, but i do not know how to how to get number of items?

Will be very thankful for any help!
Best regards,
Alexander
 
dropdownlist.Items.Clear();

...but I know you know this really...

Rhys

Be careful that the light at the end of the tunnel isn't a train coming the other way.
 
yes:) Thanks, i've asked it here befor your answer me there:))
Thank you!

Best regards,
Alexander
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top