在Windows窗体中填充Treeview [英] Populating treeview in windows forms

查看:83
本文介绍了在Windows窗体中填充Treeview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows窗体中的Treeview控件,并且没有使用存储过程从数据库填充Treeview的想法.我应该根据帐户表中的accountid在每个帐户名称下将accoutname显示为父节点,将projectnames显示为子节点.我该如何进行.我的存储过程根据登录的用户获取帐户名
在此先感谢

I am working with treeview controls in windows forms and dont have idea of populating treeview from database using stored procedure. I should display accoutname as parent node and projectnames as child nodes under each account name based on accountid in account tables. How can I proceed. my stored procedure fetches accountnames based on the user logged in
thanks in advance

推荐答案

以下是可以帮助您入门的链接:
http://msdn.microsoft.com/en-us/library/system. windows.forms.treeview.aspx [ ^ ]
Here is the link that will get you started:
http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.aspx[^]


这篇关于在Windows窗体中填充Treeview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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