本例實現在表格中把年齡小於等於
圖
通過表格的Canvas
procedure TFrmOrderBy
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
var
TemRect: TRect;
RWidth: Integer;
RHeigh: Integer;
begin
TemRect
TemRect
RHeigh := TemRect
RWidth := Rect
RWidth := (RWidth
TemRect
TemRect
if Column
begin
DBGList
if Column
DBGList
else
DBGList
DBGList
end;
end;
From:http://tw.wingwit.com/Article/program/Delphi/201311/8502.html