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
Use DataGridView.CurrentCell.Value:
DataGridView.CurrentCell.Value
String result = this.gridviewAgentDetails.CurrentCell.Value.ToString();
DataGridView.CurrentCell Property gets the currently active cell.
DataGridViewCell.Value Property gets the value associated with this cell.