WebGrid provides a filtering feature for invisible column.
In this topic, you will learn how to apply Filtering invisible column in WebGrid.
To filter invisible column in WebGrid
- Open WebGrid.NET Designer.
- Select the Allow Filtering properties in QuickStart - Popular Settings - Main Features section
- In Advanced-WebGrid-Layout Settings, set AllowFilter to Yes.
- Go to Advanced-RootTable-Columns, select one of the column that you want to set invisible(i.e ContactName), set Visible to false.
- Go back to Advanced-RootTable-FilterColumns, click add, then set the ColumnMember=ContactName, FilterText=Ana, FilterType=Like.
- Click OK to apply the changes.
- Run the project.
- The WebGrid will automatically filter the invisible column.