//列中的按钮点击事件 private void dataGridViewTemplate_CellContentClick(object sender, DataGridViewCellEventArgs e) { //MessageBox.Show(this.dataGridViewTemplate.CurrentRow.Cells[2].Value.ToString()); }