CheckBoxList

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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
 
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
 
Back
Top