We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

table summary not updated after add/remove indata grid control

Thread ID:

Created:

Updated:

Platform:

Replies:

105461 Oct 26,2012 12:07 PM Nov 29,2012 06:07 AM WPF 2
loading
Tags: GridControl
Mary Fontana
Asked On October 26, 2012 12:07 PM

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>
          


Mary Fontana
Replied On October 26, 2012 12:55 PM

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?

Ravi Shankar B [Syncfusion]
Replied On November 29, 2012 06:07 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;