Page 1 of 1

StiCheckedListBoxControl - how to set "checked" property?

Posted: Fri Jun 15, 2012 7:01 am
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?

StiCheckedListBoxControl - how to set "checked" property?

Posted: Fri Jun 15, 2012 7:10 am
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);
}

StiCheckedListBoxControl - how to set "checked" property?

Posted: Tue Jun 19, 2012 4:53 am
by Ivan
Hello,

Let us know if you need any additional help.

Thank you.