遍历数据行然后可以通过 object x = this.dataGridView1.Rows[i].Cells[coloumnIndex].Value;获取特定行的列的值
object x = this.dataGridView1.Rows[rowIndex].Cells[coloumnIndex].Value;获取到数据以后,x进行相应的格式转换即可
直接使用dataGridView1.DataSource 属性