Joe
Joe

Reputation: 721

Asp.net mvc grid with each cell having its own record

I am wondering about the most elegant solution of having a grid with each cell having its own record and specify say 3 records across 5 down for example. It is having a "tile" effect of records

Upvotes: 0

Views: 359

Answers (2)

Joe
Joe

Reputation: 721

I found something that is close to what I need and helpful

http://weblogs.asp.net/jeff/archive/2010/01/17/variations-on-a-simple-repeater-in-asp-net-mvc.aspx

Upvotes: 0

Matthew Groves
Matthew Groves

Reputation: 26141

You could look at this more of a layout (CSS) question than an ASP.NET MVC question.

Put 15 divs inside of a main div, and set them all to float: left;. Size the main div to be big enough to contain all the 15 tile divs, and make all the tile divs the same width (1/3 the width of the parent div if there's no margin or padding).

Upvotes: 1

Related Questions