简体   繁体   English

如何获得devexpressivotgrid的Grandtotal价值?

[英]How to get the Grandtotal value of devexpress pivotgrid?

How can i get a the grandtotal value from a Devexpress pivotgrid using vb.net? 我如何使用vb.net从Devexpress数据透视网格中获取总值?

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 . 我已经使用了GetCellValue中发现的财产PivotGridControl

m_pgCircularGauge.GetCellValue(0, 0)

and it worked for me. 它为我工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用devexpress gridcontrol获取保证金值? - How to get margin value with devexpress gridcontrol? 我可以在运行时在DevExpress的PivotGrid中对DateTime类型的数据进行分组吗? - Can I group DateTime type data in PivotGrid of DevExpress during runtime? 如何获取与实体绑定的DevExpress WPF ComboEdit的选定值? - How to get Selected Value of DevExpress WPF ComboEdit binded with Entity? 如何在WPF中单击DevExpress GridControl单元? - How to get DevExpress GridControl cell clicked in wpf? 如何在devexpress组合框BarItem中设置SelectedItem属性的值? - How to set the value of the SelectedItem property in devexpress combobox BarItem? 如何将文本编辑与devexpress WPF网格单元格值绑定? - How to Bind TextEdit with devexpress WPF Grid cell Value? 如何使用 WPF 和 MVVM 在 DevExpress Scheduler 控件上获取保存的约会? - How to get the saved Appointment on a DevExpress Scheduler control using WPF and MVVM? 如何在.NET中获取WPF Devexpress TreeList的选定行? - How to get Selected Row of WPF Devexpress TreeList in .NET? 如何在Devexpress GridControl中的EditTemplate中获取控件的引用 - How to get reference of control inside EditTemplate in Devexpress GridControl 如何从WPF中的C#获取XAML中的DevExpress GridControl的内容 - How to get the content of a DevExpress GridControl in XAML from C# in WPF
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM