在树视图中绑定数据在一个面板上并在其他面板上显示数据 [英] Binding data in treeview on one panel and displaying data on other panel

查看:81
本文介绍了在树视图中绑定数据在一个面板上并在其他面板上显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据部门的pdfs文件浏览器视图,并在同一页面的另一个面板上显示文件。

File explorer view of pdfs according to the department and displaying files on the another panel in the same page.

推荐答案

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.
}


这篇关于在树视图中绑定数据在一个面板上并在其他面板上显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆