http://blog.csdn.net/lanhai96/article/details/5711928 int r=Convert.ToInt32(dr.Cells[1].Value); int r =Convert.ToInt32(dataGridView1.CurrentCell.Value);;
int r = Convert.ToChar(this.dataGridView1.SelectedColumns.ToString()); this.dataGridView1.SelectedColumns[0]应该要这样写吧
{
string Str="";
switch(status)
{
case "值":
Str="名字";
break;
}
}
int r=Convert.ToInt32(dr.Cells[1].Value);
int r =Convert.ToInt32(dataGridView1.CurrentCell.Value);;
this.dataGridView1.SelectedColumns[0]应该要这样写吧