zoukankan      html  css  js  c++  java
  • cxgrid footer summary value by a column

    var
      AIndex: integer;
      AValue: variant;
    begin
     with cxGrid1DBTableView1.DataController.Summary do
        begin
          AIndex :=  DefaultGroupSummaryItems.IndexOfItemLink(cxGrid1DBTableView1DBColumn2);
          AValue :=  DefaultGroupSummaryValues[AIndex]
        end;
      pplabel6.Caption := VarToStr(AValue);
    
    var
      AIndex, AGroupIndex: integer;
      AValue: variant;
    begin
      with <AcxGridDBTableView>.DataController do
      begin
        AGroupIndex := Groups.DataGroupIndexByRowIndex[<ARowIndex>];
        AIndex := Summary.DefaultGroupSummaryItems.IndexOfItemLink(<AColumn>);
        AValue := Summary.GroupSummaryValues[AGroupIndex, AIndex];
      end;
      Caption := VarToStr(AValue);
    end;
    

      

  • 相关阅读:
    LeetCode 43. 字符串相乘(Multiply Strings)
    LeetCode 541. 反转字符串 II(Reverse String II)
    枚举类型
    c#字母加密
    汇率兑换Python
    冒泡排序c#
    c#
    HTML
    日历
    Java2
  • 原文地址:https://www.cnblogs.com/starluck/p/4648253.html
Copyright © 2011-2022 走看看