how to get summary cell changed event

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon