在DBGridEh1中是不是不能显示图象字段和备注字段?

解决方案 »

  1.   

    可以!
    你可以参考它的Demo.
      

  2.   

    procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
      DataCol: Integer; Column: TColumn; State: TGridDrawState);
    begin.................
     if  (gdFocused in state)  then
         begin
         dbimage1.Top :=dbgrid1.Top +rect.Top;
         dbimage1.Left :=dbgrid1.Left +rect.Left;
         dbimage1.Width :=rect.Right -rect.Left ;
       end;
      dbimage1.Visible:=true;
    .........................
    end;
      

  3.   

    DBGridEh有个属性:DrawMemoText,设置为真就可以显示了!
      

  4.   

    没必要,也不方便在DBGrid 中显示内种子字段,换DBControls