Number of controls in a datalistitem

T

tshad

How do I tell how many controls there are in a datalistitem?

For example I am going through my datalistitems and dealing with the
controls:

for each oItem as DataListItem in DataList1.Items

oItem.Controls?

Thanks,

Tom
 
T

tshad

Scott Allen said:
ControlCollection includes a Count property.

I was looking on the MS site and was looking at the datalistitem class which
didn't have it, but the datalistitemcollection class does (as you mentioned.

So would I do something like:

for each oItem as DataListItem in DataList1.Items

dim ktr as integer = oItem.Controls.count

Thanks,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top