How to access the DataGrid.FixedBottomRowCount := 1

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

Pieter sorry,

I did get it to work using the customcalculations. However is there away to access the Fixedbottomcount row to add value other than using columncalculations?

Thanks

Garnett

Hi,

FixedBottomRowCount is part of RowCount, so if you have set this to one, you can use RowCount - FixedBottomRowCount as an index for the cells property