📌  相关文章
📜  c# datagridview 单元格点击事件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:38.031000             🧑  作者: Mango

代码示例1
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
    if (dataGridView1.CurrentCell.ColumnIndex.Equals(3) && e.RowIndex != -1){
        if (dataGridView1.CurrentCell != null && dataGridView1.CurrentCell.Value != null)
            MessageBox.Show(dataGridView1.CurrentCell.Value.ToString());   
}