开发者

ASP.NET: Get TreeNode's Container TreeView

How to get the co开发者_JAVA技巧ntainer TreeView of a TreeNode ??

Thank you all.


There does not seem to be a way other than reflection:

TreeNode node = GetNode();
TreeView view = 
    (TreeView) node.GetType().
        GetProperty("Owner", BindingFlags.Instance | BindingFlags.NonPublic).
            GetValue(node, null);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜