/// <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); } }
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(); } } } }