Eddit user OK

This commit is contained in:
adri 2018-06-05 17:30:54 +02:00
parent 60107d4f14
commit 5d6dcfbf7e
1 changed files with 7 additions and 0 deletions

View File

@ -85,7 +85,14 @@ namespace Gestion_de_commerce_Informatique
private void dgvUser_CellContentClick_1(object sender, EventArgs e)
{
if (dgvUser.SelectedRows.Count > 0)
{
//tbId.Text = dgvPersonne.SelectedRows[0].Cells["ID"].Value.ToString();
ConfigurationUtilisateur win = new ConfigurationUtilisateur(bddUser.LireUtilisateur(int.Parse(dgvUser.SelectedRows[0].Cells["userId"].Value.ToString())), bddUser);
win.ShowDialog();
dgvUser.SelectedRows[0].Cells["Nom"].Value = $"{win.user.Prenom} {win.user.Nom}";
}
}
}
}