如何使用 vb.net 从 Devexpress pivotgrid 中获得总计值?
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
我想将总计值分配给 Circulargauge 的针值。如下
Me.CircularGaugeControl1.Scales(0).Needles(0).Value = m_pgCircularGauge.GetCellValue(0, 0)