Category / Section
How to get the filtered records from WinForms GridGroupingControl?
1 min read
Filtered records
In order to get the filtered records from the grid, FilteredRecords property can be used.
C#
private void button1_Click(object sender, EventArgs e) { //Getting the Filter records. FilteredRecordsInTableCollection filteredRecords = this.gridGroupingControl1.Table.FilteredRecords; }
VB
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click 'Getting the Filter records. Dim filteredRecords As FilteredRecordsInTableCollection = Me.gridGroupingControl1.Table.FilteredRecords End Sub
Screenshot
Reference link: https://help.syncfusion.com/windowsforms/classic/gridgroupingcontrol/filtering#getting-filtered-records