Row Numbers
Name | Movie Director | Movie Genre | Released | |
---|---|---|---|---|
1 | Star Wars | George Lucas | Sci-Fi | 1997 |
2 | Reservoir Dogs | Quentin Tarantino | Thriller | 1992 |
3 | Airplane! | David and Jerry Zucker and Jim Abrahams | Slapstick | 1980 |
4 | Terminator | James Cameron | Action | 1984 |
5 | Terminator 2: Judgement Day | James Cameron | Action | 1991 |
@{ int i = 1; }
@(await Html
.SimpleGrid(Model.Take(5))
.AddColumn(col => col.DisplayAs(movie => i++))
.AddColumnsForModel()
.RenderAsync())
Okay, I admit, you kinda have to "do it yourself" here...