如何增加或减少计数树视图检查项目? [英] How to increase or decrease count tree view checked items ?

查看:60
本文介绍了如何增加或减少计数树视图检查项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有

如何计算树视图检查项目并在标签中显示,我有一个带有复选框启用的树视图,如果我选中复选框我需要增加计数,如果未选中需要减少计数。



注意:当用户点击保存按钮时,用户检查时不需要增加或减少。它会像运行时钟一样增加。它是可能或点击保存按钮时间只刷新标签?



请回复asap







问候

Aravind

hi all
how to count the tree view checked items and show in label,i have a tree view with check box enable,if i check checkbox i need to increase the count,if unchecked need to decrease count.

Note: not when user click save button,at the time of user check need to increase or decrease.it will increase like running clock.is it possible or when click save button time time only refresh the label ?

pls reply asap



Regards
Aravind

推荐答案

请阅读我的评论。



我建议你使用 TreeView.TreeNodeCheckChanged事件 [ ^ ] ato计数已检查的节点。在那里你会找到一个例子。



请试试。你可以做到!
Please, read my comment.

I would suggest you to use TreeView.TreeNodeCheckChanged Event[^] ato count checked nodes. There you'll find an example.

Please, try. You can do it!


这篇关于如何增加或减少计数树视图检查项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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