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);
加载中,请稍侯......
精彩评论