试试
Dim bd2 As New GroupTableBuilder("销售统计1",DataTables("京东订单报表"))Dim dt2 As fxDataSourcebd2.Groups.AddDef("订单号") bd2.Totals.AddDef("余额支付", AggregateEnum.max, "其他收款") bd2.Totals.AddDef("应付金额", AggregateEnum.max, "应收货款") dt2 = bd2.BuildDataSource()