|
发表于 2007-8-16 17:49:19
|
显示全部楼层
可以通过代码处理:
unit SJWG1;
interface
uses
Business.System, Business.Model, Business.Forms, Business.Data;
type
TSJWG1 = class(TFormDoc)
InfoBroker: TInfoBroker;
DataSetBrokerBZSJJ1: TDataSetBroker;
DataGrid: TDataGrid;
procedure FormDocCreate(Sender: TObject);
private
procedure OnSheetCreated(Sender: TObject; ASheet: TSheet);
public
{public declarations}
end;
implementation
procedure TSJWG1.OnSheetCreated(Sender: TObject; ASheet: TSheet);
begin
TDataSheetArea(ASheet.Areas[0]).AutoSize := TAreaAutoSizeType.astRow;
end;
procedure TSJWG1.FormDocCreate(Sender: TObject);
begin
TDataGridExporter(DataGrid.Exporter).OnSheetCreated := OnSheetCreated;
end;
end.
这是一个表单文档(数据网格) |
|