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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Access Filtered Result

Thread ID:

Created:

Updated:

Platform:

Replies:

116215 Apr 25,2014 08:31 AM UTC Apr 26,2014 06:41 AM UTC WinRT 1
loading
Tags: SfDataGrid
Kevin Kuan
Asked On April 25, 2014 08:31 AM UTC

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

Sivakumar R [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;