windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridhitinfo-fc3e49a2.md
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
public PivotFieldValueHitInfo ValueInfo { get; }
Public ReadOnly Property ValueInfo As PivotFieldValueHitInfo
| Type | Description |
|---|---|
| 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.
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
PivotGridHitInfo hi = pivot.CalcHitInfo(e.Location);
skipFiltering = (hi.ValueInfo != null && hi.ValueInfo.ValueHitTest == PivotGridValueHitTest.ExpandButton);
}
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
Dim hi As PivotGridHitInfo = pivot.CalcHitInfo(e.Location)
skipFiltering = (hi.ValueInfo IsNot Nothing AndAlso hi.ValueInfo.ValueHitTest = PivotGridValueHitTest.ExpandButton)
End Sub
See Also