Counting selected items on CheckBoxList

R

rbscheer

Hi.

Is there any way to count how many items are selected on a CheckBoxList
control without iterating throug the items? I have a For...Next loop
that only needs to be taken into action if the CheckBoxList control has
at least one selected item.

Thanks,
Robert Scheer
 
D

Damien

Hi.

Is there any way to count how many items are selected on a CheckBoxList
control without iterating throug the items? I have a For...Next loop
that only needs to be taken into action if the CheckBoxList control has
at least one selected item.

Thanks,
Robert Scheer

If you only need to know that "at least one" item has been selected,
can you not just check that SelectedIndex > -1?
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top