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)
After making changes
treeListView1:
CheckBoxes = true
CheckedAspectName = Title
OLVColumn Collection, olvColumn1(Title):
Name = olvColumn1
AspectName = Title
CheckBoxes = false (Title column)
Aucun commentaire:
Enregistrer un commentaire