2013-01-17 25 views
0

我怎樣才能得到從Devexpress pivotgrid使用vb.net的grandtotal價值?如何獲得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

我建議你在devexpress支持部分發表你的問題 – AbZy

回答

0

我已經使用在PivotGridControl發現GetCellValue財產。

m_pgCircularGauge.GetCellValue(0, 0) 

它適用於我。

相關問題