Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
asp.net でツリー ビューを作成しました。現在選択されている親ノードの最後の子ノードを取得したいと考えています。
この問題から抜け出すためのガイドをお願いします。
次のコードを使用して、現在選択されているノードの最後の子ノードを取得します。
TreeNode t=TreeView1.SelectedNode.ChildNodes[TreeView1.SelectedNode.ChildNodes.Count - 1];
これがお役に立てば幸いです。