2013-01-17 1 views
0

어떻게 vb.net을 사용하여 Devexpress 피벗 그리드에서 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 

환산 기의 바늘 값을 지정하고 싶습니다.

Me.CircularGaugeControl1.Scales(0).Needles(0).Value = m_pgCircularGauge.GetCellValue(0, 0) 
+0

devexpress 지원 섹션에 질문을 게시하시기 바랍니다. – AbZy

답변

0

을 다음과 같이 나는 PivotGridControl에있는 GetCellValue 속성을 사용했다.

m_pgCircularGauge.GetCellValue(0, 0) 

그것은 나를 위해 일했습니다.