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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

updating summary

Thread ID:





95978 Aug 13,2010 04:24 AM UTC Aug 16,2010 10:16 AM UTC WinForms 1
Tags: GridControl
Asked On August 13, 2010 04:24 AM UTC

I have a gridgroupingcontrol. I use the following snippet to create a new row.
DataTable dt = grid.DataSource;
DataRow dr = dt.NewRow();

And when I edit the new row, the summary does not get updated when I leave the cell (still in the same row). I tried http://www.syncfusion.co.in/support/kb/685/In-a-GridGroupingControl,-how-can-I-get-the-summaries-to-update-immediately-upon-changing-a-field,-and-not-have-to-wait-until-I-leave-the-row
but it does not work for me. I need to explicitly touch(set) any other field in that row and call grid.Refresh() before invalidate the summary. And even that, it works only for 'SUM', but not for 'COUNT' on string field.
Does anyone know about that?

Christopher Issac Sunder K [Syncfusion]
Replied On August 16, 2010 10:16 AM UTC

Hi Yuazhe,

Thank you for your interest in Syncfusion products.

To achieve the desired behavior, you can place the Refresh() method after invalidate the summary within the “CurrentRecordContextChange” event.

this.gridGroupingControl1.CurrentRecordContextChange += new CurrentRecordContextChangeEventHandler(gridGroupingControl1_CurrentRecordContextChange);

private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
if(e.Action == CurrentRecordAction.EndEditComplete)
this.gridGroupingControl1.Refresh();//refresh after invalidate the summary.

Please refer the following sample which illustrates the above.


Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon