Eddit user OK
This commit is contained in:
parent
60107d4f14
commit
5d6dcfbf7e
|
@ -84,8 +84,15 @@ 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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue