如何使用C#将Checkbox添加到Listview子项中? [英] How Do I Add Checkbox Into The Listview Subitems With C#?
本文介绍了如何使用C#将Checkbox添加到Listview子项中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello evryone,
最近,我正在开发一个App的Demo。我想将整列复选框控件作为子项添加到列表视图中。另外,我想在列表视图中添加一个复选框作为列标题。选中此列标题复选框时,将检查作为子项的整列复选框。
也许,这个函数需要重绘listview控件或者有更好的方法。请给我一些解决方案或项目代码。
谢谢。
解决方案
参考:如何将复选框添加到列表视图列标题 [ ^ ]
你好Peter Leow,
感谢您的回答,我已根据您提供的网站链接访问,该项目的演示实现了简单的功能。但是,我想在listview控件中添加checkbox和comboBox。
再次感谢!
Hello evryone,
Recently, I am developing a App's Demo. I want to add a whole column checkbox controls into the listview as a subitems. In addition, i want to add a checkbox into the listview as a columnheader. when this columnheader checkbox is checked ,a whole column checkbox as subitems are checked.
maybe, this function need to redraw listview control or maybe has a better method. please give me some solution or project code.
thanks.
解决方案
Refer: How to Add a Checkbox to a List View Column Header[^]
hello Peter Leow,
thanks for your answer, I had accessed website link based on you provided, that project's demo implements simple function.however, I want to add checkbox and comboBox into the listview control.
Thanks a lot again!
这篇关于如何使用C#将Checkbox添加到Listview子项中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文