Reputation: 27
how to get a gridview in model view control,how to edit,delete the gridview with source code
Upvotes: 1
Views: 14739
Reputation: 4323
Paginated List Divides IQueryable source of any type on pages and returns items for current page. Useful for creating custom gridviews and pagers in C#, ASP.NET WebForms or MVC. Althought this code is used for pagnition, there is example on how to create Gridview with paging. Shouldn't be too hard to create CRUD actions from it.
Upvotes: 0
Reputation: 50728
Telerik has a great grid that's free (open source) for MVC. You can view it here, and the download is on their web site.
http://demos.telerik.com/aspnet-mvc/grid
Upvotes: 3
Reputation: 6751
You don't have access to ASP.NET controls in ASP.NET MVC, well not with the postback and viewstate stuff atleast.
However, you can create a nice GridView with ajax edit/delete capabilities by using something like jqGrid and a little code. Here are a couple of blog posts to get you started :
Hope that helps
Upvotes: 1