How can i get a the grandtotal value from a Devexpress pivotgrid using vb.net?
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.and it worked for me.