Rendering custom column values
# Name Surname Marital status Age Birthday Employed
1 Joe Crosswave Married 31 1/5/1988 Unemployed
2 Merry Lisel Widowed 41 5/6/1978 Unemployed
3 Henry Crux Single 28 11/19/1990 Employed
4 Cody Jurut 49 8/11/1970 Unemployed
5 Simon Scranton Single 34 10/10/1985 Unemployed
6 Leena Laurent Divorced 19 7/1/2000 Unemployed
7 Ode Cosmides Married 53 4/17/1966 Employed
8 Diandra Mizner Single 20 8/20/1999 Unemployed
9 Pete Cassel Married 22 3/13/1997 Unemployed
10 Nicky Tremblay Married 31 1/5/1988 Employed
View

@model IEnumerable<Person>

@(Html
    .Grid(Model)
    .Build(columns =>
    {
        columns.Add().RenderedAs((model, row) => row + 1).Titled("#");

        columns.Add(model => model.Name).Titled("Name");
        columns.Add(model => model.Surname).Titled("Surname");
        columns.Add(model => model.MaritalStatus).Titled("Marital status");

        columns.Add(model => model.Age).Titled("Age");
        columns.Add(model => model.Birthday).Titled("Birthday").Formatted("{0:d}");
        columns.Add(model => model.IsWorking).Titled("Employed").RenderedAs(model => model.IsWorking == true ? "Employed" : "Unemployed");
    })
)