If I try make subtotals not in 1′st columns it does it no correct
What should I do?
from your samples Subtotals :
// calculate subtotals (three levels, totals on every column)
for (int c = 4; c < _flex.Cols.Count; c++)
{
if (_chkGrand.Checked)
_flex.Subtotal(AggregateEnum.Sum, 0, -1, c, "Grand Total");
if (_chkDirection.Checked)
_flex.Subtotal(AggregateEnum.Sum, 1, 2, c, "Total for {0}");
if (_chkRegion.Checked)
_flex.Subtotal(AggregateEnum.Sum, 2, 3, c, "Total for {0}");
}