cxgrid里主从表导出excel(注意。是主从表。)解决办法

cxgrid里主从表导出excel(注意。是主从表。)with dlgSave1 dobeginif Execute thenbeginExportGridToEXCEl(F

cxgrid里主从表导出excel(注意。是主从表。)

  with dlgSave1 do
  begin
    if Execute then
    begin
      ExportGridToEXCEl(FileName, grd_Statistics, True, True);
    end;
  end;

这样只能导出主表的数据。
[解决办法]
只能自己定代码。不能直接导出主从的