需要在C#Winforms中禁用复选框单元格 [英] Need disabled check box cell in c# winforms
本文介绍了需要在C#Winforms中禁用复选框单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Datagridview,有10行和2列(文本框"列和复选框"列).
对于特定的行,意味着对于5和7行,我们需要设置禁用复选框和启用休息列复选框.
在这种情况下需要示例代码.
在此先感谢.
Hi,
I have a Datagridview and there is 10 rows and 2 columns (Textbox Column & CheckBox Column).
For particular rows means for 5 & 7 rows we need to set the disabled checkbox and rest columns enabled checkbox.
Need sample code in this scenario.
Thanks in Advance.
推荐答案
如何:在Windows窗体DataGridView控件中自定义数据格式
[^ ]
How to: Customize Data Formatting in the Windows Forms DataGridView Control
[^]
这篇关于需要在C#Winforms中禁用复选框单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文