解决方案 »

  1.   


    楼上的,你好,我现在已经在用DBGridEh控件,也就是上面的控件,现在我就是不知道“序号”怎么弄?
      

  2.   

    上次好象也有人问这个问题嘛,回答好象差不多是options里设置吧
      

  3.   

    的确是画出来的      Canvas.TextOut(((Column.Width - Length(IntToStr(ClientDataSetDraw.RecNo)) * 6) div 2), Rect.Top + 2, IntToStr(ClientDataSetDraw.RecNo));
      

  4.   

    procedure TForm1.DBGridEh1DrawColumnCell(Sender: TObject;
      const Rect: TRect; DataCol: Integer; Column: TColumnEh;
      State: TGridDrawState);
    begin
      DBGridRecordSize(Column);
      if Column.Index = 0 then
        if DBGridEh1.SumList.RecNo <> -1 then
          DBGridEh1.Canvas.TextRect(Rect, Rect.Left + 3, Rect.Top + 2,
            IntToStr(DBGridEh1.SumList.RecNo));
    end;
      

  5.   

    楼主的意思是那两个汉字怎么写进去的,那些数字是EhLib新版自带的功能。
      

  6.   

    楼主的意思是那两个汉字怎么写进去的,那些数字是EhLib新版自带的功能。
    是啊,,,,两个汉字'序号'怎么上去的呢,
      

  7.   

    Ehlib5.0.13 :DBGridEh - OptionEh- dghShowRecNo设置为true就行了,