Reputation: 5
I would like to know if there is a way to filter a gridview using an HTML coded combo box? I am creating a web application using C# and MVC and I need some way to populate a gridview and allow the user to select something from a combo box and for it to filter the gridview.
What would be the best way to do this?
Upvotes: 0
Views: 991
Reputation: 113
I would suggest using the built in Filter Builder that DevExpress provides.
It is simple to apply:
settings.Settings.ShowFilterBar = GridViewStatusBarMode.Visible;
and therefore worth a look before going into more complicated methods.
The user can click on the filter string below the gridview. A popup appears that allows the user to build a filter by adding and removing criteria. This provides similar functionality to a checkbox, but with far less code.
Upvotes: 1