Bonjour. I am using kdbgrid from KControls for lazarus. 1- When i add this :
procedure TForm1.KDBGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
R: TRect; State: TKGridDrawState);
begin
if (aCol <> 1) or (aRow = 0) then begin
Exit;
end;
if (aCol=2) and (aRow > 1) then begin
KDBGrid1.CellRect(aCol, ARow,R);
R.Left := R.Right - (R.Bottom - R.Top);
Button3.BoundsRect := R;
KDBGrid1.Editor.Assign(Button3);
end;
end
my dbgrid does't show correctly.
so i can't add any buttons to the cells of the grid or images in a permanent way. I read the help (kgrid_manual.pdf) but i didn't find any thin.
thanks a lot .