Hello,
I have TStringGrid on my form, property AutoEdit is set to True, option goEditing is also True and option goAlwaysShowEditor may be True or False, no matter. When a cell of my grid is in editing mode and i leave it (I click on the next cell, for example) the OnEditingDone event is launched three times! Is it bug or some delphi legacy? I think it is not very efficient launch some event three times. OK, I can do a little workaround:
procedure TGrid.OnEditingDone(Sender: TObject);
begin
if grid.modified then
begin
grid.modified:=false;
.....my code...
end;
end;
(this makes my code run only once)
but does anyone know better way how to avoid it?
Thanks for your ideas.
I forgot to write that it's Lazarus 0.9.26 on Win Vista.