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