Checked List Box Control

Stimulsoft Reports.NET discussion
Post Reply
nelson chai
Posts: 16
Joined: Mon Jan 08, 2007 4:01 am

Checked List Box Control

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Checked List Box Control

Post 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.
Post Reply