在Windows窗体中填充Treeview

编程入门 行业动态 更新时间:2024-10-23 09:29:58
本文介绍了在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

本文发布于:2023-11-09 15:46:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572767.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   Windows   Treeview

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!