Click here to Skip to main content
16,004,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
TreeView1.TreeNodePopulate += new  TreeNodeEventHandler(this. TreeView1_TreeNodePopulate);
But this code not Working What can do any Help Me sir very Urgent
Posted

TreeView1.TreeNodePopulate += someMethod;
 
Share this answer
 
Create a function for this event. Try this:
C#
protected void TreeView1_TreeNodePopulate(object sender, EventArgs e)
{
   //Do your stuff
   //Again if you want to call a function then try this
   fnTestFunction();
}
private void fnTestFunction()
{
   //stuff for function
}




--Amit
 
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