将多个checkedListbox添加到datagrid视图的列 [英] Add multiple checkedListbox to columns of datagrid View

查看:129
本文介绍了将多个checkedListbox添加到datagrid视图的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以将单个复选框添加到列到datagrid视图列,但是可以将列表框添加到datagrid视图,目的是让一个单元格具有多个复选框。

As we can Add single checkbox to column to datagrid view column but is it possible to add checked list box to datagrid view the aim is to have a cell having multiple checkboxes.

如何添加?

我们如何访问其属性,例如文本和检查?

How can we access their properties,such as text and checked ?

得到一些答案,但我不明白
http://social.msdn.microsoft.com/Forums/en/winformsdatacontrols/thread/6c68a44c-c4ab-4caf-94e9-249ec63a90d0

Got some answer but i cannot understand it http://social.msdn.microsoft.com/Forums/en/winformsdatacontrols/thread/6c68a44c-c4ab-4caf-94e9-249ec63a90d0

推荐答案

您可以通过创建自定义DataGridView列来执行此操作。网络上有许多文章证明了这一点; 这里有一个例子。将复选框显示为属性以访问其属性。

You can do this by creating a custom DataGridView column. There are many articles on the web that demonstrate this; here's one example. Expose the checkboxes as properties to access their properties.

这篇关于将多个checkedListbox添加到datagrid视图的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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