Z
zqssoft
Unregistered / Unconfirmed
GUEST, unregistred user!
在DBGrid1这个控件中,行自动编号是这样的rocedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);beginif Column.Index=0 then dbgrid1.Canvas.TextRect(Rect,Rect.Left+10,Rect.Top,InttoStr(dbgrid1.DataSource.DataSet.RecNo));end;但是我现在用cxGrid1这个控件,如何让他出现像上面DBGrid一样原理的自动编号列?