Question

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.

Était-ce utile?

La 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top