vendredi 9 novembre 2018

Why won't checkmarks appear in an TreeListView checkbox when Aspect name is specified?

My question is based on the ObjectListView gettingstarted code (GettingStartedTree project ) referred to in the Getting Started section of the ObjectListView sourceforge online docs.

My goal is to add checkboxes to the Title column of TreeListView in the GettingStartedTree project.

I was able to add checkboxes simply by setting treeListView1.CheckBoxes to true and setting treeListView1.CheckedAspectName to Title (see After making changes below) as described in the instructions. However, when I run the program and click on a checkbox, a checkmark does not appear in the checkbox.

Note: If I leave treeListView1.CheckBoxes set to true and set treeListView1.CheckedAspectName to null, then a checkmark does appear in the checkbox.

Am I configuring the TreeListView correctly?

Before making any changes

treeListView1:

CheckBoxes = false
CheckedAspectName = null

OLVColumn Collection, olvColumn1(Title):

Name = olvColumn1
AspectName = Title
CheckBoxes = false (Title column)

enter image description here

After making changes

treeListView1:

CheckBoxes = true
CheckedAspectName = Title

OLVColumn Collection, olvColumn1(Title):

Name = olvColumn1
AspectName = Title
CheckBoxes = false (Title column)

enter image description here




Aucun commentaire:

Enregistrer un commentaire