Basic Grid

Id First Name Last Name
1JonathanChapman
5AaronHolmes
10HelenBurke
15ThomasHayes
21ScottNguyen
27ChrisWallace
33HarryHarrison
39StephanieFerguson
45AnneHayes

Code

Inside MVCGridConfig.cs
MVCGridDefinitionTable.Add("EmployeeGrid", new MVCGridBuilder<Person>()
    .WithAuthorizationType(AuthorizationType.AllowAnonymous)
    .AddColumns(cols =>
    {
        cols.Add("Id").WithValueExpression(p => p.Id.ToString());
        cols.Add("FirstName").WithHeaderText("First Name")
            .WithValueExpression(p => p.FirstName);
        cols.Add("LastName").WithHeaderText("Last Name")
            .WithValueExpression(p => p.LastName);
    })
    .WithRetrieveDataMethod((options) =>
    {
        var result = new QueryResult<Person>();
        using (var db = new SampleDatabaseEntities())
        {
            result.Items = db.People.Where(p => p.Employee).ToList();
        }
        return result;
    })
);
View
@Html.MVCGrid("EmployeeGrid")