开发者

Unable to Check a CheckBox in TreeListView (ObjectListView)

I can't check or uncheck checkboxes in my TreeListView for some reason.

Well, I didn't set AspectName because my top level class didn't contain a corresponding property but I used a delegate instead

treeElementsColSpoofing.AspectGetter = delegate(obj开发者_如何学Cect o)
{
    if (o is ClassA)
    {
        return ((ClassA)o).SomeList.Exists(x => x.SomeObject.Name == "Some name");
    }
    return string.Empty;
};

.


Have a look at the OnCheck() event - maybe something's blocking the check/uncheck?


Look at the documentation around CheckBoxes; http://objectlistview.sourceforge.net/cs/recipes.html#how-do-i-use-checkboxes-in-my-objectlistview

In your case you might need to attach a CheckStateGetter and CheckStatePutter delegate to the view.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜