protected void ScopeNextAggregateRow(RuntimeUserSortTargetInfo sortTargetInfo)
 {
     if (sortTargetInfo != null)
     {
         if (sortTargetInfo.AggregateRows == null)
         {
             sortTargetInfo.AggregateRows = new List <AggregateRow>();
         }
         AggregateRow item = new AggregateRow(this.m_odpContext.ReportObjectModel.FieldsImpl, true);
         sortTargetInfo.AggregateRows.Add(item);
         if (!sortTargetInfo.TargetForNonDetailSort)
         {
             return;
         }
     }
     this.SendToInner();
 }
 private void NextAggregateRow()
 {
     if (this.m_odpContext.ReportObjectModel.FieldsImpl.AggregationFieldCount == 0 && this.m_customAggregates != null)
     {
         for (int i = 0; i < this.m_customAggregates.Count; i++)
         {
             this.m_customAggregates[i].Update();
         }
     }
     if (this.m_userSortTargetInfo != null && this.m_userSortTargetInfo.SortTree != null)
     {
         if (this.m_userSortTargetInfo.AggregateRows == null)
         {
             this.m_userSortTargetInfo.AggregateRows = new List <AggregateRow>();
         }
         AggregateRow item = new AggregateRow(this.m_odpContext.ReportObjectModel.FieldsImpl, true);
         this.m_userSortTargetInfo.AggregateRows.Add(item);
         if (!this.m_userSortTargetInfo.TargetForNonDetailSort)
         {
             return;
         }
     }
     this.SendToInner();
 }