Thanks Geert,
your example solves adding record in dbGrid, but now there are problems pressing PgUp and PgDn - some lines are doubled and when you go line by line again some are changed from A color to B color ...
(About making it generic, yes i just copied from related solution :)
Can we fix PageUp and PageDown?
Main Topics
Browse All Topics





by: Geert_GruwezPosted on 2009-02-07 at 09:20:48ID: 23579123
it looks like you could make a generic procedure out of this
ll(Sender: TObject; const Rect: Trect; me); // = TDBGrid
when you get a (Sender: TObject); , try to use it.
if you want to know what class it is you can first try this:
procedure TForm1.DBGrid1DrawColumnCe
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
ShowMessage(Sender.ClassNa
end;
Select allOpen in new window