在WinFrom中将TreeListView绑定到数据库 [英] binding TreeListView to Database in WinFrom

查看:99
本文介绍了在WinFrom中将TreeListView绑定到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

在我的数据库中,我有一张这样的桌子;



MinuteItemTable:



MinuteItemIndex - MinuteItemNumber - MinuteItemText - MinuteItemParentIndex



1 - (1) - text1 - 0

2 - (1 -1) - text2 - 1

3 - (1-2) - test3 - 1

4 - (2) - text4 - 0

5 - (2-1) - text5 - 4







我想填写treelistView by绑定到此表并有2列:

数字 - 文字



我不知道该怎么做!



i需要放弃

plz回答

hi
In my database i have a table like this;

MinuteItemTable:

MinuteItemIndex - MinuteItemNumber - MinuteItemText - MinuteItemParentIndex

1 - ( 1 ) - text1 - 0
2 - ( 1-1 ) - text2 - 1
3 - ( 1-2 ) - test3 - 1
4 - ( 2 ) - text4 - 0
5 - ( 2-1 ) - text5 - 4



I want to fill treelistView by binding to this table and has 2 columns :
Number - Text

I dont know how to do this!

i need the abswer
plz answer

推荐答案

我应该使用DataTreeListView代替。 />
此控件有3个属性非常有帮助。



KeyAspectName - ParentKeyAspectName - RootKey值





在我的项目中这个3 pro得到这些值:



MinuteItemIndex - MinuteItemParentIndex - 0



之后我将此控件绑定到dataBase。
I should have used DataTreeListView instead.
This Control have 3 Property which are so helpful.

KeyAspectName - ParentKeyAspectName - RootKey value


in my project this 3 pro get these values :

MinuteItemIndex - MinuteItemParentIndex - 0

after that i bind this control to dataBase.


这篇关于在WinFrom中将TreeListView绑定到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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