WebGrid provides a filtering feature which is very powerful to filter data based on several filter types, such as LIKE, BETWEEN, GREATER THAN and many others.
In this topic, you will learn the basic thing on how to apply Filtering feature in WebGrid.
To filter data in WebGrid
- Open WebGrid.NET Designer.
- In Layout Settings, set AllowFilter to Yes.
- Click OK to apply the changes.
- Run the project.
- Select the Filter Row and type the data you want to filter.
- Click the blue icon to display the filter types.
- Select one of the filter types and click Apply All Filters.
- Finally, WebGrid will automatically filter the data.
To hide Filter Bar in WebGrid
- Open WebGrid.NET Designer.
- In Layout Settings, set FilterBarVisible to True.
- Click OK to apply the changes.
- Run the project and WebGrid will hide the Filter Bar when it is in Filter mode.