Page 1 of 1

Checked List Box Control

Posted: Tue May 29, 2007 4:57 am
by nelson chai
Hi,

I facing a problem. I used CheckedListBox Control and Place in the Paremeter Form. (In the StimulReport.Net Report Form)

but i can't collect all the checked object when click on OK button.

Any solution for this? Pls advice.

Thanks a lot.

Regards,
Nelson Chai

Checked List Box Control

Posted: Tue May 29, 2007 8:45 am
by Edward
You can access to the standard .Net CheckedListBox component via StiCheckedListBoxControl.Control property. This property allows access to a collection of the checked items.
The code to iterate these items may be the following:

Code: Select all

for (int i=0;i<CheckedListBoxControl1.Control.CheckedItems.Count;i++)
{
...
MyCheckedItem = CheckedListBoxControl1.Control.CheckedItems[i].ToString();
}
Thank you.