vb 6.0中的Treeview和ListView [英] Treeview and listview in vb 6.0

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

问题描述

当我在treeview控件中单击特定节点时,则只会从数据库中获取该节点的相关记录并显示在listview控件中.

when i click on particular node in treeview control then only related records of that node will be fetch from database and display in listview control.

推荐答案

在树视图控件中,将数据库密钥放在每个节点的标记"字段中.单击节点后,请在SQL查询中使用该ID返回列表视图的行.
When loading the tree-view control, put the database key in the Tag field of each node. When the node is clicked use that ID in your SQL query to return the rows for the list view.


这篇关于vb 6.0中的Treeview和ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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