111,126
社区成员
发帖
与我相关
我的任务
分享 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (dataGridView1.Columns[e.ColumnIndex].Name == "year")
{
MessageBox.Show("You picked " + dataGridView1.Rows[e.RowIndex].Cells["year"].Value.ToString());
}
}