if(this.dataGridView[0,0].value!=null)
{
this.dataGridView[0,0].value = null;
this.dataGridView[0,0] = new DataGridViewImageCell();
this.dataGridView[0,0].value= Image1;
}
else
{
this.dataGridView[0,0].value = null;
this.dataGridView[0,0] = new DataGridViewImageCell();
this.dataGridView[0,0].value= Image2;
}不知道你说的是不是这个意思,写了个大概,没测试。
{
this.dataGridView[0,0].value = null;
this.dataGridView[0,0] = new DataGridViewImageCell();
this.dataGridView[0,0].value= Image1;
}
else
{
this.dataGridView[0,0].value = null;
this.dataGridView[0,0] = new DataGridViewImageCell();
this.dataGridView[0,0].value= Image2;
}不知道你说的是不是这个意思,写了个大概,没测试。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货