使用C#在DataGridView Winform中构建自定义RadioButton单元格 [英] Build a Custom RadioButton Cells in DataGridView Winform with C#

查看:727
本文介绍了使用C#在DataGridView Winform中构建自定义RadioButton单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!!!


我在winform中有一个包含数据(多行)的datagridview.
我想在此datagridview的列中构建单选按钮.
我该怎么办?

请帮帮我!!!

致以诚挚的问候,
nwe nwe

Hello!!!


I have a datagridview with datas (multiple rows) in winform.
I want to build radiobutton in this datagridview''s columns.
How could I do?

Pls help me!!!

Warmly Regards,
nwe nwe

推荐答案

请参见此处 [ ^ ]以获得对DataGridView控件中的列类型.但是,似乎没有单选按钮的列类型.在这种情况下,您可能需要通过扩展DataGridViewColumn类来创建自定义列类型.请参见此处 [
See here[^] for an explanation of the column types in the DataGridView control. However, it seems that there''s no column type for Radio Buttons. In this case, you might need to create your custom column type by extending the DataGridViewColumn class. See here[^] for a detailed explanation on how to do this.


这篇关于使用C#在DataGridView Winform中构建自定义RadioButton单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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