且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用C#将Checkbox添加到Listview子项中?

更新时间:2023-10-12 11:08:34

参考:如何将复选框添加到列表视图列标题 [ ^ ]


你好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!