private void avdHstGridView_CustomSummaryExists(object sender, CustomSummaryExistEventArgs e) { if (e.Item is GridGroupSummaryItem) { var fn = (e.Item as GridGroupSummaryItem).FieldName; if (e.IsGroupSummary && (colDDVZ.GroupIndex == -1 || e.GroupLevel < colDDVZ.GroupIndex) && (fn == "DBRC" || fn == "DALC" || fn == "DBKY")) { e.Exists = false; colCompDrunTotal.Visible = false; } else { colCompDrunTotal.VisibleIndex = colDALC.VisibleIndex + 1; } } }
private void afbGridView_CustomSummaryExists(object sender, CustomSummaryExistEventArgs e) { /* * GridView view = (GridView)sender; * GridSummaryItem item = e.Item as GridSummaryItem; * if (item == null) return; * GridColumn col = view.Columns[item.FieldName]; * if (col == null) return; */ if (e.Item is GridGroupSummaryItem) { var aaa = e.Item; var fn = (e.Item as GridGroupSummaryItem).FieldName; //if (e.IsGroupSummary && e.GroupLevel != colBDVZ.GroupIndex && fn == "BTUTBRT") if (colBDVZ.GroupIndex == -1 && fn == "BTUTBRT") { e.Exists = false; } else if (e.GroupLevel < colBDVZ.GroupIndex && fn == "BTUTBRT") { e.Exists = false; } } }
private void gridView_CustomSummaryExists(object sender, CustomSummaryExistEventArgs e) { e.Exists = true; }
void OnCustomSummaryExists(object sender, CustomSummaryExistEventArgs e) { e.Exists = e.GroupLevel == 0; }
void gridView1_CustomSummaryExists(object sender, CustomSummaryExistEventArgs e) { }
private void grid_CustomSummaryExists(object sender, CustomSummaryExistEventArgs e) { e.Exists = e.GroupLevel == 0; }