datagridView CellContentClick事件
private void dgvReg_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (dgvReg.Columns[e.ColumnIndex].Name == "buttonName")
{
MessageBox.Show("成功!");
}
}