先获得是第几行a = e.RowIndex;dataGridView1.Rows[a].Cells[0].Value.ToString();dataGridView1.Rows[a].Cells[1].Value.ToString();
e.Cells[i].Text