table summary not updated after add/remove indata grid control

My dataGrid has a DataTable as data source.

When I add/or delete a row in the dataTable,  the table summary that shows the total number of rows does not get updated.

to add row I do:
   var row = dt.NewRow();
   dt.Rows.Add(row);

To delete row I do:
row.Delete();

Is there a way I can force an update of the summary?

<syncfusion:GridDataControl.TableSummaryRows>
<syncfusion:GridDataSummaryRow Title="Total : {CountSummary} Items"
ShowSummaryInRow="True"
TitleColumnCount="2">
<syncfusion:GridDataSummaryRow.SummaryColumns>
<syncfusion:GridDataSummaryColumn Name="CountSummary"
Format="'{Count:d}'"
MappingName="ROWID"
SummaryType="CountAggregate" />
</syncfusion:GridDataSummaryRow.SummaryColumns>
</syncfusion:GridDataSummaryRow>
</syncfusion:GridDataControl.TableSummaryRows>
          


2 Replies

MF Mary Fontana October 26, 2012 04:55 PM UTC

Actually the remove row does correctly update the total in summary.
I think the add row does not update the total because the  ROWID field is unbound and I remove it as a visible column.

Is there a way to have the MappingName in summary total to include unbound value?


RS Ravi Shankar B Syncfusion Team November 29, 2012 11:07 AM UTC

Hi Mary,

 

Sorry for the inconvenience caused.

We have analysed the reported issue with our sample with our current version 10.4.0.53 and we are not able to reproduce the issue. Can you please share your version? This would be helpful for us to serve you.

Sample location: http://www.syncfusion.com/downloads/Support/DirectTrac/101303/TableSummarySample-357175054.zip

Video Location: http://www.syncfusion.com/downloads/Support/DirectTrac/101303/table_summary-147839942.zip

 

Regards,

Ravi Shankar B.


Loader.
Up arrow icon