private void gridView2_CustomSummaryExists(object sender, DevExpress.Data.CustomSummaryExistEventArgs e)
 {
     //string s ="";
     //if(((DevExpress.XtraGrid.GridColumnSummaryItem)(e.Item)).SummaryValue==null)
     //(((DevExpress.XtraGrid.GridColumnSummaryItem)(e.Item))).SummaryValue.ToString();
     ////((((DevExpress.XtraGrid.GridColumnSummaryItem)(e.Item))).Column.SummaryItem).SummaryValue;
 }
Example #2
0
 private void avdHstGridView_CustomSummaryExists(object sender, DevExpress.Data.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;
         }
     }
 }
Example #3
0
 private void mznDvzGridView_CustomSummaryExists(object sender, DevExpress.Data.CustomSummaryExistEventArgs e)
 {
     if (e.Item is GridGroupSummaryItem)
     {
         var fn = (e.Item as GridGroupSummaryItem).FieldName;
         //if (e.IsGroupSummary && e.GroupLevel != colBDVZ.GroupIndex && fn == "BTUTBRT")
         if (colDVZ.GroupIndex == -1 && (fn == "DBRC" || fn == "DALC" || fn == "DBRCBKY" || fn == "DALCBKY"))
         {
             e.Exists = false;
         }
         else if (e.GroupLevel < colDVZ.GroupIndex && (fn == "DBRC" || fn == "DALC" || fn == "DBRCBKY" || fn == "DALCBKY"))
         {
             e.Exists = false;
         }
     }
 }
Example #4
0
 private void accKlnDtyAllGridView_CustomSummaryExists(object sender, DevExpress.Data.CustomSummaryExistEventArgs e)
 {
     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 (colDDVZ.GroupIndex == -1 && fn != "AVDID")
         {
             e.Exists = false;
         }
         else if (e.GroupLevel < colDDVZ.GroupIndex && (fn == "DKLN" || fn == "DBRCKLN" || fn == "DALCKLN"))
         {
             e.Exists = false;
         }
     }
 }
Example #5
0
 private void afbGridView_CustomSummaryExists(object sender, DevExpress.Data.CustomSummaryExistEventArgs e)
 {
     if (e.Item is GridGroupSummaryItem)
     {
         var fn = (e.Item as GridGroupSummaryItem).FieldName;
         //var ccc = (e.Item as GridGroupSummaryItem).DisplayFormat;
         //var ddd = afbGridView.GetGroupRowValue(e.GroupRowHandle, colBDVZb);
         //if (fn == "BTUTBRT")
         // {
         //     (e.Item as GridGroupSummaryItem).DisplayFormat = "{0:n} " + ddd;
         // }
         if (colBDVZb.GroupIndex == -1 && fn == "BTUTBRT")
         {
             e.Exists = false;
         }
         else if (e.GroupLevel < colBDVZb.GroupIndex && fn == "BTUTBRT")
         {
             e.Exists = false;
         }
     }
 }