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

@model IQueryable<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");
    })
)