VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > MultiTotals Property |
Returns or sets whether subtotals will be displayed in a single row when possible.
[form!]VSFlexGrid.MultiTotals[ = {True | False} ]
If you set the MultiTotals property to True, then subtotal rows created by the Subtotal method may contain aggregate values for multiple columns. Otherwise, new subtotal rows are created for each aggregate value.
The examples below show the difference:
fg.MultiTotals = True
fg.Subtotal flexSTClear
fg.Subtotal flexSTSum, 1, 2, , vbRed, vbWhite, True
fg.Subtotal flexSTSum, 1, 3, , vbRed, vbWhite, True
fg.MultiTotals = False
fg.Subtotal flexSTClear
fg.Subtotal flexSTSum, 1, 2, , vbRed, vbWhite, True
fg.Subtotal flexSTSum, 1, 3, , vbRed, vbWhite, True
Boolean
True