Edit in TDBGrid lazarus / 16-Databases ---------------------------------------------------------------------- LemonParty · 2024-02-19 14:53 Hello. I have a TSQLQuery and connected to it TDBGrid. I can change data in table over code using Query.Edit and Query.Post, but when I edit cells in DBGrid this changes seems unvisible to program (Query.Modified show nothing). Why I can't edit over DBGrid? ---------------------------------------------------------------------- LemonParty · 2024-02-20 15:53 I am trying this code Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm.gdCurveEditingDone(Sender: TObject);begin  if qCurve.Modified then begin    qCurve.Post;    qCurve.ApplyUpdates;  end;end; and receiving this error No update query specified and failed to generate one (No fields for inclusion in where statement found) at line qCurve.ApplyUpdates. ---------------------------------------------------------------------- LemonParty · 2024-02-20 16:06 I found the solution. I included pfInKey for primary key field in ProviderFlags. ---------------------------------------------------------------------- LemonParty · 2024-02-20 16:11 The other question: How can I know if there was any modifications in dataset before calling ApplyUpdates?