Reputation: 11
I am looking for a visual Linq expression builder for a WinForms application. There is a project on codeproject that is exactly what I need, except it is WPF.
Does anyone know of open-source or commercial software that would accommodate me?
Basically I want to have a user control that I can bind to a type (class), and provide intuitive controls for user to select FIELD, FILTER TYPE (i.e. >=, like, =, etc) and a VALUE, and then be able to parse that information to run Linq against an IQueryable.
Upvotes: 1
Views: 2232
Reputation: 18965
The article you referenced in the question actually links to a WinForms control put together by the VB Team.
It looks like it might fit the bill. It's written in VB, but you should still be able to reference it from a C# project after you compile it.
Upvotes: 1
Reputation: 60021
UI technology doesn't change the behavior of expression trees.
Either port the WPF controls to WinForms, or just host the WPF controls inside your WinForms window via the ElementHost object.
Upvotes: 1