Good day requesting your support to go through DataGridView
in C # and get the value of each ID
in a column ie if I have a number N
< /> ID's within DataGrid
, by double clicking on each one of them send me a MessageBox
in which you indicate the number of ID
that I selected.
Try to do it with the following code but I only got the value of the last ID
for (int i = 0; i < dgvInfoNomina.Rows.Count; i++)
{
dgc = dgvInfoNomina.Rows[i].Cells[0];
IdNomina = (dgc.Value.ToString());
}
MessageBox.Show("El Id es" + IdNomina);