如何在列表视图的第二列中添加复选框 [英] How to add the Checkboxes in the Second column of the Listview

查看:134
本文介绍了如何在列表视图的第二列中添加复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手.我认为这个问题对您来说非常简单...这里的问题是...如何在Listview的第二列中添加复选框..我设置CheckBoxes属性Listview的值为true,但它在Listview的所有列中都显示复选框..所以请告诉我我为此要做的事情...

如果您中有样本的人也张贴了该样本代码.

在此先谢谢您.

I am a new to C#.. I think this question is very simple to u guys... The problem here is ... how to add the Checkboxes in the Second column of the Listview.. I Set the CheckBoxes property of the Listview as true but it displays the Checkboxes to all the columns of the Listview.. So please tell me what are the things i have to do for that...

If any of u people having the samples post that sample code too.

Thanks in advance.

推荐答案

这与使用listview添加复选框有关.如果要隐藏其他列中的复选框,则必须完全强制执行操作.
请参阅此线程,可能会对您有所帮助.
http://social.msdn.microsoft.com /forums/zh-CN/winforms/thread/1c25c338-2b50-4c30-aac6-b3676700dff6/ [ http://stackoverflow.com/questions/60683/checkbox-in-listview-control [ ^ ]
This is regarding checkbox adding using listview. If you want to hide checkbox in other columns, you have to do if force fully.
Refer this thread, might help you.
http://social.msdn.microsoft.com/forums/en-US/winforms/thread/1c25c338-2b50-4c30-aac6-b3676700dff6/[^]
http://stackoverflow.com/questions/60683/checkbox-in-listview-control[^]


这篇关于如何在列表视图的第二列中添加复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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