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.
Syncfusion Feedback

how to get summary cell changed event

Thread ID:

Created:

Updated:

Platform:

Replies:

54689 Jan 15,2007 03:52 PM UTC Jan 17,2007 03:58 PM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 15, 2007 03:52 PM UTC

On change of the summary cell value i need to change the lower group cell values. How to get summary cell changed event?

Administrator [Syncfusion]
Replied On January 17, 2007 03:58 PM UTC

Hi Harshad,

You would have to derive the ChildTable and override the GetSummaries method to find the summary changes in a grid. Here is a code snippet to show this.

public class GroupingChildTable : ChildTable, IGridGroupOptionsSource
{
public GroupingChildTable(Element parent): base(parent){}

public delegate void TableSummaryChanged(object sender,Syncfusion.Collections.BinaryTree.ITreeTableSummary[] ITableSummary);
public event TableSummaryChanged SummaryChanged;

public override Syncfusion.Collections.BinaryTree.ITreeTableSummary[] GetSummaries(Table parentTable, out bool summaryChanged)
{
Syncfusion.Collections.BinaryTree.ITreeTableSummary[] ITableSummary = base.GetSummaries (parentTable, out summaryChanged);
if( summaryChanged)
if( SummaryChanged != null)
SummaryChanged(this,ITableSummary);
return ITableSummary;
}

#region IGridGroupOptionsSource Members
//default code here....
#endregion
}

Please refer to the attached sample for implementation.
GGCDetectSummaryChanges.zip

Best Regards,
Haneef

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.

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

;