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