Dim g As Subtotalgroup tb.SubtotalGroups.Clear() tb.GroupAboveData = False tb.TreeVisible = False g = New Subtotalgroup g.Aggregate = AggregateEnum.Sum g.GroupOn = "*" g.TotalOn = "数量,金额" g.Caption = "总计" tb.SubtotalGroups.Add(g) tb.Subtotal()
tb是针对的当前表