Setting initial column sort order
Name Surname Marital status Age Birthday Employed
Simon Scranton Single 35 10/10/1985
Pete Cassel Married 24 3/13/1997 False
Ode Cosmides Married 55 4/17/1966 True
Nicky Tremblay Married 33 1/5/1988 True
Merry Lisel Widowed 43 5/6/1978
Leena Laurent Divorced 21 7/1/2000 False
Joe Crosswave Married 33 1/5/1988 False
Henry Crux Single 30 11/19/1990 True
Diandra Mizner Single 22 8/20/1999 False
Cody Jurut 51 8/11/1970 False
View

@model IQueryable<Person>

@(Html
    .Grid(Model)
    .Build(columns =>
    {
        columns.Add(model => model.Name).Titled("Name").Sortable(true).InitialSort(GridSortOrder.Desc);
        columns.Add(model => model.Surname).Titled("Surname").Sortable(true);
        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");
    })
)