Home - Forums-.NET - FlyTreeView (ASP.NET) - Getting Selected Index of Selected Node

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Getting Selected Index of Selected Node
Link Posted: 27-Oct-2006 04:44
You have \"SelectedNode\" property.  How do you get the index of selected node?
Link Posted: 27-Oct-2006 06:38
TreeNode selectedNode = flyTreeView.SelectedNode;
if (selectedNode != null) {
   int selectedNodeIndex = selectedNode .Parent.Nodes.IndexOf(selectedNode);
}