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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting Elements In A DropDownList

Status
Not open for further replies.

Modica82

Technical User
Jan 31, 2003
410
GB
Hi All,

I have a DropDownList Populated by a datareader. Problem is, in some instances i know no values will be returned, is there a way of counting the number of elements are in the drop down, or testing if it has no elements, so i can insert my own --Sorry No Records Return-- within the drop down??

Any Ideas??

Rob
 
I apologise, silly question:

DDL.Items.Count is the syntax if anyone is interested!

Sorry again.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top