if (dgvEmployee.CurrentRow.Index == -1) // Is there any row selected now? return; // Retrieve the first column from the selected row. int Id = Convert.ToInt32(dgvEmployee.CurrentRow.Cells[0].Value.ToString()); This gives the particular value in the row of cell 0 ...If it help carry on
came out of hardwork