如题,在线等待,谢谢。

解决方案 »

  1.   

    用DBImage控件显示吧,这样岂不更好吗?放在DBGrid 中我觉得布局不好的。
      

  2.   

    DrawColumnCell事件中var
      Bmp: TBitmap;
    begin
      DBGrid1.Canvas.FillRect (Rect); //清除界面
      if Column.Field = Table1Graphic then
      begin
        // 如果字段是图像字段,则绘制图像
        Bmp := TBitmap.Create;
        try
          Bmp.Assign (Table1Graphic);
          DBGrid1.Canvas.StretchDraw (Rect, Bmp);
          //拉伸图像以适应单元格
        finally
          Bmp.Free;
        end;
      end;
    end;