Find out what I'm doing, Follow Me :)

Thursday, July 07, 2011

Get the Most out of WebGrid in ASP.NET MVC

In this article on MSDN Magazine, Stuart Leeks introduces WebGrid and shows how it can be used in ASP.NET MVC 3, then takes a look at how to really get the most out of it in an ASP.NET MVC solution.
This article looks at how to fit the WebGrid component into an ASP.NET MVC environment to enable developers to be more productive while rendering tabular data. Focus is on WebGrid from an ASP.NET MVC aspect:
  • creating a strongly typed version of WebGrid with full IntelliSense
  • hooking into the WebGrid support for server-side paging
  • adding AJAX functionality that degrades gracefully when scripting is disabled
The working samples build on top of a service that provides access to the AdventureWorksLT database via the Entity Framework. If you’re interested in the data-access code, it’s available in the code download, and you might also want to check out Julie Lerman’s article, “Server-Side Paging with the Entity Framework and ASP.NET MVC 3,” in the March 2011 issue(

Read the entire article on MSDN
blog comments powered by Disqus
Related Posts with Thumbnails