WebGrid provides feature to filter column initially from designer.
In this topic, you will learn how to filter column initially.
To filter column initially
- Bind WebGrid
to AccessDataSource (Using Customers table from NorthWind data source).
- Right click on WebGrid and choose WebGrid Designer.
- Select Allow Filtering to show the filter bar.
- Switch to Advanced tab. Expand RootTable and select
FilterColumns.
- Add a column. Set ColumnMember to ContactName,
FilterText to Maria and FilterType
to Like.
- Run the project. WebGrid will filter ContactName column based on text "Maria".