How to get the count of records which are currently visible in PivotGrid?
23 Oct 2019 / 1 minute to read
It is possible to get the count of records which are currently visible in PivotGrid by using VisibleRecords
property.
After defining the PivotGrid control, raise its loaded event. Inside the pivotGrid_Loaded
event, you can get the list of VisibleRecords
from the PivotEngine and store it as a separate collection.
Please refer the below code sample.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
pivotGrid.Loaded += pivotGrid_Loaded;
}
void pivotGrid_Loaded(object sender, RoutedEventArgs e)
{
List<object> VisibleRecords = pivotGrid.PivotEngine.VisibleRecords;
int _count = VisibleRecords.Count;
}
}
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page