ASP.NET MVC: Add Filter, Search, and Sort to your Tables

When you generate an MVC view based on a List template, Visual Studio will typically generate a table like this: <table class=”table”> <tr> <th>@Html.DisplayNameFor(model => model.CustomerFirstName)</th> <th>@Html.DisplayNameFor(model => model.CustomerLastName)</th> <th>@Html.DisplayNameFor(model => model.CustomerStatus)</th> </tr> @foreach (var item in Model) { <tr>…