将单选按钮单元格添加到winform datagrid列 [英] add radio button cell to winform datagrid column

查看:89
本文介绍了将单选按钮单元格添加到winform datagrid列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我在Windows窗体上有datagrid,我在运行时将行添加到datagrid.我在datagrid上有一列,我需要在运行时向其中添加不同的UI控件(列的每个单元格将包含不同的UI控件,例如下拉菜单,复选框,超链接,单选按钮).我可以添加除单选按钮控件以外的其他控件,如何将单选按钮添加到datagrid列?
我已经使用不适用于我,因为它需要整列单选按钮列.

Hi.
I have datagrid on my windows form, i am adding row to datagrid at runtime. i have a column on datagrid to which i need to add different UI control(each cell of a column will contain different UI controls like dropdown,checkbox,hyperlink,radion button) at runtime. i can add other controls except radio button control, how can i add radio button to datagrid column?
i have use this its not working for me as it requires whole column as radio button column.

推荐答案

这可能对您有帮助:
http://msdn.microsoft.com/en-us/library/aa730882% 28VS.80%29.aspx [ ^ ]
this could help you, perhaps:
http://msdn.microsoft.com/en-us/library/aa730882%28VS.80%29.aspx[^]


这篇关于将单选按钮单元格添加到winform datagrid列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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