VB.NET TreeView [英] VB.NET TreeView
问题描述
我在sqldatabase中有一个表。
结构是
Id标题ParentId
1花0
2颜色0
3涨1
4茉莉花1
5红色2
6绿色2
7白玫瑰3
8光亮3
这是我桌子的样本结构。
i希望将上面的内容表加载到我的vb.net表格中,格式为TREEVIEW
格式。
如何做这项工作。
请帮忙,uurrrrgggggeeeennnnttt。
提前谢谢
Maignanamurthy.RA
< blockquote>您需要使用ID和PAENTID字段编写自联接。
Mo ving到MS SQL论坛....
您需要使用ID和PAENTID字段编写自联接。
hai朋友,
感谢您的回复,
但是我想要确切的代码从sqldatabase填充vb.net中的treeview。
提前感谢
I have one table in sqldatabase.
The structure is
Id Title ParentId
1 flower 0
2 color 0
3 rose 1
4 jasmine 1
5 red 2
6 green 2
7 white rose 3
8 light rose 3
this is the sample structure of my table.
i want to load the above table of content into my vb.net form in the TREEVIEW
format.
how to do this work.
pls help , uurrrrgggggeeeennnnttt.
thanks in advance
Maignanamurthy.RA
You need to write a self join using ID and PAENTID fields.
Moving to the MS SQL forum....
You need to write a self join using ID and PAENTID fields.hai friend,
thanks for reply,
but i want the exact code for populate the treeview in vb.net from sqldatabase.
thanks in advance
这篇关于VB.NET TreeView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!