你试试~~我瞎写的~~呵呵~~
var
BitMap:TBitMap;
begin
DBGrid1.Canvas.FillRect(Rect);
DBGrid1.Canvas.CopyMode := cmMergeCopy;
BitMap := TBitMap.Create ;
BitMap.LoadFromFile('a.bmp');
DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, BitMap );
end;
var
BitMap:TBitMap;
begin
DBGrid1.Canvas.FillRect(Rect);
DBGrid1.Canvas.CopyMode := cmMergeCopy;
BitMap := TBitMap.Create ;
BitMap.LoadFromFile('a.bmp');
DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, BitMap );
end;
[Error] Unit1.pas(73): There is no overloaded version of 'Rect' that can be called with these arguments
DBGrid1DrawColumnCell??