Click here to Skip to main content
16,009,391 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
int mSelectNode = int.Parse(tvHierarchyView.SelectedNode.Value);
                   int mParentSelectNode = int.Parse(tvHierarchyView.SelectedNode.Parent.Value);

// populate treeview again i am binding trview 

tvHierarchyView.FindNode(mParentSelectNode.ToString()).Expand();
                    tvHierarchyView.FindNode(mParentSelectNode.ToString()).Selected = true;
i am getting error object reference error i am getting 
Posted

1 solution

Object reference error is because of the FindNode Method has not returned the Node.

Try to find the node as the link

http://forums.asp.net/t/1275399.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900