CheckBoxList

S

shapper

Hello,

I created a CheckBoxList at runtime and added a few items.
How can I define when a item is selected or not by default?

Thanks,
Miguel
 
M

Michael Nemtsev [MVP]

Hello shapper,

checkboxlist1.Items.Selected

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


s> Hello,
s>
s> I created a CheckBoxList at runtime and added a few items. How can I
s> define when a item is selected or not by default?
s>
s> Thanks,
s> Migue
 
S

shapper

Hello shapper,

checkboxlist1.Items.Selected

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

s> Hello,
s>
s> I created a CheckBoxList at runtime and added a few items. How can I
s> define when a item is selected or not by default?
s>
s> Thanks,
s> Miguel


So you mean I need to loop through each list item and make it selected
or not?
I thought that there would be a way to make it selected the moment it
was added ... this seems logic, or not?

Thanks,
Miguel
 

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,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top