How to get column value of grid in C# Windows application?
When I clicked on the cell, at that time it should get column values.
private void gridAgentD
try this eventHandler: [I tried with this and i got result]
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = e.RowIndex; int colIndex = e.ColumnIndex; MessageBox.Show(dataGridView1[colIndex, rowIndex].Value.ToString()); }