The following code works great, however, I need to add a total tax value in column 12 on salesITEMSDataGrid.FixedBottomRowCount row. This is not a calculated column or row total:
salesITEMSDataGrid.BeginUpdate;
// salesITEMSDataGrid.RowCount := salesITEMSDataGrid.rowcount+1;
salesITEMSDataGrid.FixedBottomRowCount := 1;
salesITEMSDataGrid.ColumnCalculations[13,'Total Price'] :=
[CreateNormalColumnCalculation(gcmSum,
procedure(AColumn: integer; ALevel: integer; var AOptions: TTMSFNCDataGridDataColumnCalculationOptions)
begin
AOptions.CalculationFormat := 'Total: %.2f';
end,nil
)];
salesITEMSDataGrid.EndUpdate;
How to set this up?
Thanks
Garnett