Search code examples
c#checkboxobjectlistview

ObjectListview is not changing the subitem checkbox state


I'm using ObjectListview.

I have enable the usesubitemcheckbox. but the problem is, when i click the checkboxes in the subitems, the checkboxes is not changing the state.

enter image description here


Solution

  • My best guess would be that there is just no bool aspect assigned.

    Check that

    • you assigned an AspectName for the respective columns
    • the aspect is of type bool
    • the column property IsEditable is set to true

    If you use AspectGetter and AspectSetter make sure those use bool as well. I believe subitem checkboxes can also be tri-state using CheckState type and setting the column property TriStateCheckBoxes to true. (Also use the ObjectListView properties for the checkbox of the first column, its "special" with respect to the other columns).