procedure TForm1.DBGridEh1Columns0GetCellParams(Sender: TObject;
EditMode: Boolean; Params: TColCellParamsEh);
begin
params.Text:=inttostr(params.Row);
end; //這段話產生了序號
procedure TForm1.DBGridEh1DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumnEh;
State: TGridDrawState);
begin
if pos('E',adoquery1.FieldByName('料號').AsString)=3 then
DBGridEh1.Canvas.Brush.Color:=clyellow
else
DBGridEh1.Canvas.Brush.Color:=clwhite;
DBGridEh1.DefaultDrawColumnCell(rect,datacol,column,state);
end; //這段話有產生了畫筆
//當上面2段話分別單獨運行都OK,單是在同一個工程中運行的話,就只顯示畫筆的顏色,就不顯示序號,求解,這是為什么?
uj5u.com熱心網友回復:
會不會設定完text又畫上去蓋掉了?uj5u.com熱心網友回復:
好像是覆寫了,其實里面還是有序號的!應該怎么辦?
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/122333.html
標籤:數據庫相關
上一篇:售票軟體
