Back to Devexpress

PivotGridHitInfo.ValueInfo Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridhitinfo-fc3e49a2.md

latest3.8 KB
Original Source

PivotGridHitInfo.ValueInfo Property

Gets the information on the field value located under the test point.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public PivotFieldValueHitInfo ValueInfo { get; }
vb
Public ReadOnly Property ValueInfo As PivotFieldValueHitInfo

Property Value

TypeDescription
PivotFieldValueHitInfo

A PivotFieldValueHitInfo object which contains information on the field value located under the test point.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ValueInfo property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

pivot-grid-winforms-provide-custom-date-time-group-intervals-and-preserve-correct-sort-order/CS/WindowsApplication21/Form1.cs#L62

csharp
PivotGridHitInfo hitInfo = pivotGridControl1.CalcHitInfo(e.Location);
if (hitInfo.HitTest == PivotGridHitTest.Value && hitInfo.ValueInfo != null)
    dataGridView1.DataSource = hitInfo.ValueInfo.CreateDrillDownDataSource();

win-designer-pivot-as-master-filter/CS/DesignerSample/Form1.cs#L38

csharp
PivotGridHitInfo hi = pivot.CalcHitInfo(e.Location);
    skipFiltering = (hi.ValueInfo != null && hi.ValueInfo.ValueHitTest == PivotGridValueHitTest.ExpandButton);
}

pivot-grid-winforms-provide-custom-date-time-group-intervals-and-preserve-correct-sort-order/VB/WindowsApplication21/Form1.vb#L70

vb
Dim hitInfo As PivotGridHitInfo = pivotGridControl1.CalcHitInfo(e.Location)
    If hitInfo.HitTest = PivotGridHitTest.Value AndAlso hitInfo.ValueInfo IsNot Nothing Then dataGridView1.DataSource = hitInfo.ValueInfo.CreateDrillDownDataSource()
End Sub

win-designer-pivot-as-master-filter/VB/DesignerSample/Form1.vb#L40

vb
Dim hi As PivotGridHitInfo = pivot.CalcHitInfo(e.Location)
    skipFiltering = (hi.ValueInfo IsNot Nothing AndAlso hi.ValueInfo.ValueHitTest = PivotGridValueHitTest.ExpandButton)
End Sub

See Also

PivotGridHitInfo Class

PivotGridHitInfo Members

DevExpress.XtraPivotGrid Namespace