Paging is easy, and I generally do querystring paging...
/customers/list/?page=5&perPage=20
The GridView (except for basic rendering) will not work with ASP.NET MVC because of their dependence on ViewState & PostBack.
Editable grids are possible, but you have to do it manually. This is arguably the same size of code as you would write with templated GridViews anyway, but I tend to not like editable grids. I generally place an edit link on the row and utilize a redirect/popup/or
ajax-style floating panel to allow me to edit the record in question.
subdigital
Contributor
2105 Points
445 Posts
ASPInsiders
Re: MVC GridView
Feb 07, 2008 08:21 PM|LINK
Paging is easy, and I generally do querystring paging...
/customers/list/?page=5&perPage=20
The GridView (except for basic rendering) will not work with ASP.NET MVC because of their dependence on ViewState & PostBack.
Editable grids are possible, but you have to do it manually. This is arguably the same size of code as you would write with templated GridViews anyway, but I tend to not like editable grids. I generally place an edit link on the row and utilize a redirect/popup/or ajax-style floating panel to allow me to edit the record in question.
http://www.flux88.com
ASP.NET MVP
Certified ScrumMaster
ASPInsider
MCSD