We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to Access Filtered Result

Hi,

Is There any property for me to access the filtered result after I applied filter on my original data source in the datagrid?

thanks and best regards,
Kevin

1 Reply

SR Sivakumar R Syncfusion Team April 26, 2014 06:41 AM UTC

Hi Kevin,

You can access the Filtered result using dataGrid.View.Records Property as in the below code snippet,

Code snippet

this.sfGrid.FilterChanged += sfGrid_FilterChanged;

 

void sfGrid_FilterChanged(object sender, GridFilterEventArgs e)

{

var Filteredresult = this.sfGrid.View.Records.Select(recordentry => recordentry.Data);

}

 

Please let us know if you have any queries.

 

Thanks,

Sivakumar


Loader.
Up arrow icon