[英]How to get the Grandtotal value of devexpress pivotgrid?
How can i get a the grandtotal value from a Devexpress pivotgrid using vb.net? 我如何使用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
I want to assign the grandtotal value to the needle value of a Circulargauge. 我想将总计值分配给圆规的指针值。 As follows
如下
Me.CircularGaugeControl1.Scales(0).Needles(0).Value = m_pgCircularGauge.GetCellValue(0, 0)
I have used the GetCellValue property found in PivotGridControl
. 我已经使用了GetCellValue中发现的财产
PivotGridControl
。
m_pgCircularGauge.GetCellValue(0, 0)
and it worked for me. 它为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.