0

由于某种原因,我无法选中或取消选中TreeListView中的复选框。

好吧,我没有设置 AspectName 因为我的顶级类不包含相应的属性,但我使用了委托

treeElementsColSpoofing.AspectGetter = delegate(object o)
{
    if (o is ClassA)
    {
        return ((ClassA)o).SomeList.Exists(x => x.SomeObject.Name == "Some name");
    }
    return string.Empty;
};

.

4

2 回答 2

0

看看 OnCheck() 事件——也许有什么东西阻止了检查/取消检查?

于 2012-01-25T05:08:15.067 回答
0

查看 CheckBoxes 周围的文档;http://objectlistview.sourceforge.net/cs/recipes.html#how-do-i-use-checkboxes-in-my-objectlistview

在您的情况下,您可能需要将 aCheckStateGetterCheckStatePutter委托附加到视图。

于 2013-01-24T01:37:06.093 回答