示例#1
0
 /// <summary>
 /// Ẩn thông tin tính toán của 1 nhóm trên Grid
 /// </summary>
 /// <param name="grid">GridView</param>
 /// <param name="column">GridColumn</param>            
 public static void HideGroupCalcInfo(GridView grid, GridColumn column)
 {
     if (column.SummaryItem != null)
     {
         column.UnGroup();
         grid.GroupSummary.Remove(column.SummaryItem);
     }
 }
示例#2
0
 void Group(DevExpress.XtraGrid.Views.Grid.GridView gridView)
 {
     if (gridView.OptionsView.ShowGroupPanel)
     {
         if (currentColumn != null && currentColumn.GroupIndex == -1)
         {
             currentColumn.Group();
         }
         else
         {
             if (currentColumn != null)
             {
                 currentColumn.UnGroup();
             }
         }
     }
 }