本文介绍了在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
推荐答案以下是可以帮助您入门的链接: msdn.microsoft/en-us/library/system. windows.forms.treeview.aspx [ ^ ] Here is the link that will get you started: msdn.microsoft/en-us/library/system.windows.forms.treeview.aspx[^]
更多推荐
在Windows窗体中填充Treeview
发布评论