for (int i = 0; i < dgv_dingDanZhuBiao.Rows.Count; i++)
{
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)this.dgv_dingDanZhuBiao.Rows[i].Cells["选择"];
bool IsChecked = Convert.ToBoolean(cell.Value);
if (IsChecked)
{
string ddhao = this.dgv_dingDanZhuBiao.Rows[i].Cells["dgv_danHao"].Value.ToString();
jieSuanDingDanHao = jieSuanDingDanHao + ",'" + ddhao + "'";
}
}
我明明选择了一行,但是运行的时候 IsChecked 总是为false
为什么啊
那位高手知道的帮我解决下,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货