C Datagridview Cell Click Event

[Solved] C Datagridview Cell Click Event | Vb - Code Explorer | yomemimo.com
Question : c# datagridview cell click event

Answered by : alex-nhjhxar8ug4s

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());
}

Source : | Last Update : Sat, 28 Nov 20

Answers related to c datagridview cell click event

Code Explorer Popular Question For Vb