About the Grid View
The high performance DevExpress ASP.NET MVC Grid View extension is a powerful editing and data shaping component that allows end-users to easily manage information and provide powerful data filtering options. The Grid View provides layout features, such as cell merging, templates, and support for master-detail data presentation allowing you to build grid layouts of any complexity. Additionally, the Grid View includes a built-in printing engine for instant ad-hoc reporting, without fear of performance penalties.
Follow the three simple steps below to add a DevExpress GridView extension and bind it to your data. It's easy as “M”, “V”, and “C”.
1. Model (the "M" in MVC). First, you will need a Model object for the DevExpress ASP.NET MVC Grid View to bind to. Create a new data model using the Entity Framework wizard or LinqToSQL ORM from Visual Studio. However, you can use any model that supports the IEnumerable or IQueryable interface (learn more in our online documentation).
2. View (the "V" in MVC). Next, declare the ASP.NET MVC Grid View extension inside of the View. Specifically, we'll create a Partial View because the DevExpress GridView extension provides AJAX callbacks by default to give your end-users a better experience without updating the entire page. However, because ASP.NET MVC does not support callbacks, declare the GridView extension inside of the Partial View and define how the callbacks will be routed back to your controller using the CallbackRouteValues property:
Partial View code:
3. Controller (the "C" in MVC). Finally, the controller is where you will need to define the action methods that handle GridView's callbacks. The "OverviewPartial" action method below handles the callbacks. While the GetOrders action method gets the data from the model to pass to the View. As you can see, the native DevExpress GridView extension follows the ASP.NET MVC pattern while providing powerful features for your end-users.
Watch a short nine-minute getting started video now to learn about the DevExpress GridView extension for ASP.NET MVC.