Hi,
I tried selecting a node programmatically. That worked but the event selectedindexchanged wasn't thrown. Is there a way to throw an event after selecting a node programmatically? I found the node, expand all parent nodes and tried to set the select() on
the selected node
Here is my try:
private void FindNode(TreeNode treeNode, int ID)
{
if (isNumber == true && parentid != 0 && parentid == ID)
{
ExpandUpwards(treeNode, this.TV_Navi);
treeNode.Select();
}
}
public static void ExpandUpwards(TreeNode node, TreeView view)
{
node.Expand();
view.SelectedNodeStyle.CssClass = "colorActive";
if (node.Parent != null)
ExpandUpwards(node.Parent, view);
}
Go to the complete details ...