private object ProcessSummaryItem(GridViewSummaryItem summaryItem) { object summary = summaryItem.Evaluate((IHierarchicalRow)this.Group.GroupRow); this.RaiseGroupSummaryEvaluateEvent(summaryItem, summary); return(summary); }
private object RaiseGroupSummaryEvaluateEvent(GridViewSummaryItem summaryItem, object summary) { summaryItem.SuspendNotifications(); summaryItem.Template = this.ViewTemplate; GroupSummaryEvaluationEventArgs args = new GroupSummaryEvaluationEventArgs(summary, this.Group, summaryItem.FormatString, summaryItem, (IHierarchicalRow)this.Group.GroupRow, (object)this); args.Value = summary; this.ViewTemplate.EventDispatcher.RaiseEvent <GroupSummaryEvaluationEventArgs>(EventDispatcher.GroupSummaryEvaluate, (object)this.ViewTemplate, args); summaryItem.FormatString = args.FormatString; summaryItem.ResumeNotifications(false); return(args.Value); }
public GroupSummaryEvaluationEventArgs( object value, DataGroup group, string formatString, GridViewSummaryItem summaryItem, IHierarchicalRow parent, object context) { this.formatString = formatString; this.group = group; this.value = value; this.summaryItem = summaryItem; this.parent = parent; this.context = context; }