关于DataGridViewCheckBoxColumn的问题 dataGridView1.Rows[i].Cells[0].Value = true;一般都是用true跟false的。可以写一个判断啊,如果excel某行某列传来的是0,那个就=true,是1就false啊。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 foreach (DataGridViewRow dr in this.dataGridView1.Rows) { try { DataGridViewCheckBoxCell cbx = (DataGridViewCheckBoxCell)dr.Cells[0]; if ((bool)cbx.FormattedValue) { } } catch (Exception ex) { MessageBox.Show(ex.Message); } } WPF中的storyboard如何顺序播放动画? 求窗体答案 关于webbrowser加载完成后的问题 错误 1 命名空间“System.Data”中不存在类型或命名空间名称“SqlClint”(是缺少程序集引用吗?) 请教 求一个算法:列出六位字母数字组合? 时间转换的问题? 100分求教画图问题,帮顶也有分 【C#的一个BUG】?! 请教C#动态建模,类似visio界面编程 请问如何用C#从win2000系统中获取win16程序的句柄 DockPanel制作的DockBar边距问题 开新论坛
{
try
{
DataGridViewCheckBoxCell cbx = (DataGridViewCheckBoxCell)dr.Cells[0];
if ((bool)cbx.FormattedValue)
{
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}