Hi,
The Last
is an extension method from System.Linq
.
Anyway, try this:
int count = table.Columns.Count;
table.Columns[count - 1].TotalsRowFunction = TotalsRowFunction.Sum;
table.Columns[count - 2].TotalsRowFunction = TotalsRowFunction.Sum;
Does this solve your issue?
Regards,
Mario