private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
DataGridViewColumn column = dataGridView1.Columns[e.ColumnIndex];
if (column is DataGridViewButtonColumn)
{
//要做的事
dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString()//获取点击行的第二个表格的值
}
}
}