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
To get the Values of the Selected Cells Follow the Below Code
int CNo = datagrid.CurrentCellAddress.Y; int StNum = (int)datagrid.Rows[CNo].Cells[0].Value; string StName = (string)datagrid.Rows[CNo].Cells[1].Value; int MrksSecured = (int)datagrid.Rows[CNo].Cells[2].Value;