Open jainharsh21 opened 1 week ago
For some reason the image isn't visible in the previous comment
Hi jainharsh,
Based on the provided details, the SfDataGrid doesn't automatically display summary values. To display the summary value, you need to override the buildTableSummaryCellWidget method in the DataGridSource class. The calculated summary value is passed as a parameter to the DataGridSource.buildTableSummaryCellWidget method. Therefore, you need to return the required widget with the summary value. We have attached a sample and provided a UG link for your reference. Please consult the following sample and link for more information. If you have any further concerns, please feel free to reach out.
UG link - Table summary
Sample : SfDataGrid.zip
Regards, Abinesh P
Bug description
I have been trying to view the summary for the revenue column but it is just showing an empty container, have been stuck on this for quite some time, please help.
Steps to reproduce
Copy paste the code given, you will be able to reproduce
Code sample
Code sample
```dart return SfDataGrid( allowSorting: true, columnWidthMode: ColumnWidthMode.auto, gridLinesVisibility: GridLinesVisibility.both, headerGridLinesVisibility: GridLinesVisibility.both, source: ProductDataSource(productSummary), tableSummaryRows: [ GridTableSummaryRow( showSummaryInRow: true, title: 'Total Revenue: {Sum}', columns: [ const GridSummaryColumn( name: 'Sum', columnName: 'revenue', summaryType: GridSummaryType.sum), ], position: GridTableSummaryRowPosition.bottom) ], columns:Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Stack Traces
Stack Traces
```dart [Add the Stack Traces here] ```On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
```console [Add your output here] ```