Search for existing suggestions

Filtering support in databinding

Add Filter and Sort support to Windows Forms BindingSource when bound to EF as in example below.

Dim context As New MyEntities
context.Employees.Load()
EmployeeBindingSource.DataSource = context.Employees.Local.ToBindingList()

'Would like the following to then work
EmployeeBindingSource.Filter = "FirstName = 'SANTA'"
EmployeeBindingSource.Sort = "FirstName"

I use data-driven filters stored outside of the application, so new filters and sorts may be added without new code.

See also
https://connect.microsoft.com/data/feedback/details/704105/entity-framework-winforms-datagridview-support-for-bindingsource-filter-sort-and-column-heading-sort#details

8 votes
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)

We’ll send you updates on this idea

Stephen shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base