asp.net-mvcsortingasp.net-mvc-4paginationwebgrid

Webgrid alternative layouts?


Ok so this is my first question and I think it is a good one. I am wanting to layout a webgrid in MVC 4 C# with a different format than a standard table. What I am looking for is a layout like this example(bestbuy product list example).

I would like to use webgrid because of it's built-in paging and sorting capabilities. I can live with simpler solutions than the one I included but I need it to keep the same general format with a picture on the left and information in a list-like look on the right if possible.


Solution

  • That looks like three columns to me. All you need to do is pass in the appropriate HTML into the format parameter for each column: http://msdn.microsoft.com/en-us/library/system.web.helpers.webgridcolumn.format(v=vs.111).aspx