예제 #1
0
 protected void ProcessGroup(GridViewGroup group, GridViewRow currentrow)
 {
     if (group.CurrentValue == DataBinder.Eval(currentrow.DataItem, group.FieldName).ToString())
     {
         group.RowDataBound(currentrow);
     }
     else
     {
         if (group.IsStarted)
         {
             this.GenerateSummaryGroup(group, currentrow);
         }
         group.Start();
         group.CurrentValue = DataBinder.Eval(currentrow.DataItem, group.FieldName).ToString();
         this.AddGriwViewRow(currentrow).Cells[0].Text = group.DisplayName + " " + group.CurrentValue;
         group.RowDataBound(currentrow);
     }
 }