third
asked on
150pts CustomDBGrid Component
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have posted on given link and ... take a look on Indent property
ASKER
here's the bonus... thanks again! ;-)
ASKER
Great, that did it exactly what i want! could you post your answer on the link i've given above so i can give you all the points.
btw, i have additional request. could it be possible to add a property that will control the spaces between the rows.
i have tried the code below but i'm not so sure if that's the right way to do it. it destroys the appearance of the image (i.e. not proportionally sized).
procedure TPicDBGrid.DrawColumnCell(
Column: TColumn; State: TGridDrawState);
var
OutRect : TRect;
begin
inherited;
if AnsiCompareText(Column.Fie
with Canvas do
begin
OutRect := Rect;
InflateRect(OutRect,-2,-2)
StretchDraw(OutRect, FPicture.Bitmap);
end;
end;
thanks again! ;-)