Articles in this section
Category / Section

How to get the filtered rows after applying the excel filter in WinForms GridGroupingControl?

Filter records


The FilteredRecords collection holds the records that are filtered in the
WinForms GridGroupingControl. The Filtered rows can be obtained from FilteredRecords collection in RecordsFilters.Changed event.


C#

void RecordFilters_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
    int FilteredRecords = this.gridGroupingControl1.Table.FilteredRecords.Count;
}

VB

Private Sub RecordFilters_Changed(ByVal sender As Object, ByVal e As Syncfusion.Collections.ListPropertyChangedEventArgs)
 Dim FilteredRecords = Me.gridGroupingControl1.Table.FilteredRecords.Count
End Sub 

Samples:

C#: FilteredVisibleRows_C#

VB: FilteredVisibleRows_VB

 

Reference Link: Filtering

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied