modifier datarow en cours
salam
j'ai un datagridview raccorder a tableadapter et je veut modifier la ligne que l'utilisateur sélectionne j'ai utilisé ça
Code:
1 2 3 4 5 6 7
| DataRowView h = (DataRowView)Dtachepostedetailnonexecuté.Current;
h.Row.SetField("execution", true);
h.Row.SetField("Temps execution", DateTime.Now);
h.Row.SetField("TACHES MAINTENANCE","allezchabab2");
MessageBox.Show(Convert.ToString(h.Row.Field<string>("TACHES MAINTENANCE"))); |
la derniee ligne c'est pour testé et ça marche mais bon ça n’affecte pas la base de donnée (aucune modification effectuer) .merci