Hello
I'm creating a TreeNode like the following code shows:
Code: C#
TreeNode myTreeNode = new TreeNode();
myTreeNode.Text = "TreeNode1";
Now I'd like to add a specific Event to fire when the TreeNode has been clicked:
Code: C#
myTreeNode.Navigator.ItemClick +=
new NavigationItemEventHandler(OnNavigatorItemClick);
The OnNavigatorItemClick-Methode still exists, but
the problem is that the navgator is null.
Why is it null? Shouldn't it has been initialized? What can I do to initialize it?
I really appreciate for your answers!