StiCheckedListBoxControl - how to set "checked" property?

Stimulsoft Reports.NET discussion
Post Reply
Tristan
Posts: 2
Joined: Fri Jun 15, 2012 6:26 am

StiCheckedListBoxControl - how to set "checked" property?

Post by Tristan »

I'm using the stimulsoft checkedlistbox control on a form, and I'd like to include functionality to check all rows with one click, which would use code something like:

for(int i = 0; i < MyComboListBox.Control.Items.Count; i++)
{
MyComboListBox.Control.Items.Checked = true;
}

However, none of the properties or functions I would use to set the checked property in a baseline System.Windows.Forms.CheckedListBox (.Checked, .SetItemChecked() etc.) seem to be implemented in the stimulsoft version. Would anyone know if there's an equivalent available?
Tristan
Posts: 2
Joined: Fri Jun 15, 2012 6:26 am

StiCheckedListBoxControl - how to set "checked" property?

Post by Tristan »

Isn't it always the way, struggled with this for a day and then as soon as I posted I figured it out myself!

Working code:

for(int i = 0; i < MyCheckedListBox.Control.Items.Count; i++)
{
MyCheckedListBox.Control.SetItemChecked(i, true);
}
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

StiCheckedListBoxControl - how to set "checked" property?

Post by Ivan »

Hello,

Let us know if you need any additional help.

Thank you.
Post Reply