如何从数据库中的一个表填充TreeView控件 [英] How to populate TreeView control from a one table in database

查看:87
本文介绍了如何从数据库中的一个表填充TreeView控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表是[会计]
字段AccID``AccountID'',
ArAccDes``AccountName'',
ParAcc``ParentID'',
ArParDes ParentName

1-
我想根据AccountID的父级填充此表中的TreeView控件


2-
我想在两个文本框中的树中元素上显示活动"时(ID,命名)

My Table Is [ Accounting ]
Field AccID ''AccountID'' ,
ArAccDes ''AccountName'' ,
ParAcc ''ParentID'',
ArParDes ParentName

1-
I want to fill the TreeView control From This table Depending on the Parent of the AccountID


2-
I want when I Active at the element in the tree is displayed (ID, named) in the two Text Box

推荐答案

Try
从数据库填充TreeView控件 [如何使用基类和数据提供程序将分层数据填充到TreeView中. [ http://cstruter.com/blog/247 [
Try
Populating a TreeView Control from the Database[^]
How to fill hierarchical data into a TreeView using base classes and data providers.[^]
http://cstruter.com/blog/247[^]


这篇关于如何从数据库中的一个表填充TreeView控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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