Returns the field values currently shown in the PivotGrid.
public List<object> GetVisibleValues()
Public Function GetVisibleValues As List(Of Object)
A collection of objects that represent the field values currently shown in the PivotGrid.
The collection returned by this method consists of unique field values stored in the underlying data source (PivotGridFieldBase.GetUniqueValues), except the values excluded by applying filters to other fields and the values filtered out by the filter applied directly to that field.
To obtain all values stored in the underlying data source in the current field, except the values excluded by applying filters to other fields, use the PivotGridFieldBase.GetAvailableValues method.
If the PivotGridControl filters data by OLAP member unique names (controlled by the PivotGridFieldOptions.OLAPFilterByUniqueName and PivotGridOptionsOLAP.FilterByUniqueName options), the GetVisibleValues method returns them instead of field values.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetVisibleValues() method.
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.