I need to create a GridView in MVC5 to view Data and Also add some Drop down list to filter the Data and show the result in GridView. I wasn't able to find any good example for Grid view in MVC. Should I use GridView at all or just try to use Table? and how I can find a good tutorial about it? Thanks for help.
Asked
Active
Viewed 8,472 times
2 Answers
5
-
1thanks, I tried to use Grid.Mvc but I have some error in this line:@Html.Grid(Model).Columns(columns => ... In (Model) it gave me: The type argument for methos 'GridMvc.Html.Grid
cannot be inferred from usage. Try specify the tyoe arguments explicitly. – Alma Nov 07 '15 at 01:20
1
Although this is old question, you can achieve displaying grid using following ways-
- Simple grid design using foreach loop and html table: Iterating table's tr tag. This is pretty simple and basic way of displaying records.
- Webgrid : Provided by System.Web.Helpers class which render data in tabular format with supported feature like sorting, pagination and filtration.
- JqGrid : It's a jquery plugin. It support many advance feature which grid view should have.
- Kendo UI : This is from Telerik which is not free.
You can refer this post for more details and demo.

Ashwini Verma
- 7,477
- 6
- 36
- 56