Click here to Skip to main content
15,886,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
File explorer view of pdfs according to the department and displaying files on the another panel in the same page.
Posted

1 solution

DataTable dtBooksTitle = YourTableHere;
TreeNode tnBooks;

for(int i =0;i<dtBooksTitle.Rows.Count;i++)
{
	tnMain = new TreeNodedtBooksTitle.Rows[i]["Books"].Tostring());
	TreeViewControl1.Nodes.Add(tnMain);
}

private void TreeViewControl1_AfterSelect(object sender, TreeViewEventArgs e)
{
	 TreeNode tnselected = tvCPTHistory.SelectedNode;
	 string sName = tnselected.Name;
//Use this to generate query to fill the other panel.
}
 
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