繁体   English   中英

如何获得devexpressivotgrid的Grandtotal价值?

[英]How to get the Grandtotal value of devexpress pivotgrid?

我如何使用vb.net从Devexpress数据透视网格中获取总值?

Dim dsAccountingCube As New DevExpress.XtraPivotGrid.PivotGridAdomdDataSource
dsAccountingCube.ConnectionString = m_strOLAPConnection

m_pgCircularGauge.DataSource = dsAccountingCube

m_pgCircularGauge.BeginUpdate()
m_pgCircularGauge.RetrieveFields()

For Each f In m_pgCircularGauge.Fields
    Select Case f.Name
        Case "fieldBalance1122"
            f.Caption = "$"
            f.Area = DevExpress.Xpf.PivotGrid.FieldArea.DataArea

        Case Else
            f.Visible = False
        End Select
Next

我想将总计值分配给圆规的指针值。 如下

Me.CircularGaugeControl1.Scales(0).Needles(0).Value = m_pgCircularGauge.GetCellValue(0, 0)

我已经使用了GetCellValue中发现的财产PivotGridControl

m_pgCircularGauge.GetCellValue(0, 0)

它为我工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM