16,748
社区成员
发帖
与我相关
我的任务
分享
with TMyCustomDBGrid(Sender) do
begin
DefaultDrawColumnCell(Rect, DataCol, Column, State);
if (Column.ID = 1) then
begin
if ClientDataSetDBGrid.RecordCount > 0 then
begin
if (ClientDataSetDBGrid.FieldByName('Check').AsInteger = 1) then
Canvas.StretchDraw(Rect, Image2.Picture.Graphic)
else
Canvas.StretchDraw(Rect, Image1.Picture.Graphic);
end;
end;
end;