MVC.Grid quick start
Name Surname Marital status Age Birthday Employed
Joe Crosswave Married 31 1/5/1988 False
Merry Lisel Widowed 41 5/6/1978
Henry Crux Single 28 11/19/1990 True
Cody Jurut 49 8/11/1970 False
MVC controller

[HttpGet]
public ViewResult Index()
{
    return View(Context.Set<Person>());
}

MVC view

@model IEnumerable<Person>

@(Html
    .Grid(Model)
    .Build(columns =>
    {
        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");
    })
    .Empty("No data found")
    .Filterable()
    .Sortable()
    .Pageable()
)

Razor page

public class IndexModel : PageModel
{
    public IQueryable<Person> People { get; set; }

    public void OnGet()
    {
        People = repository.GetPeople();
    }
}

Razor page view

@page
@model IndexModel

@(Html
    .Grid(Model.People)
    .Build(columns =>
    {
        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");
    })
    .Empty("No data found")
    .Filterable()
    .Sortable()
    .Pageable()
)