Razor
DbNetGridCore employeesGrid = new DbNetGridCore(DataSourceType.JSON, "/data/employees.json", typeof(Employee));
employeesGrid.Column(new string[] { nameof(Employee.Gender), nameof(Employee.DepartmentName), nameof(Employee.Status) }).Lookup();
employeesGrid.Columns = new List() {
nameof(Employee.EmployeeKey),
nameof(Employee.LastName),
nameof(Employee.FirstName),
nameof(Employee.NameStyle),
nameof(Employee.Title),
nameof(Employee.HireDate),
nameof(Employee.BirthDate),
nameof(Employee.EmailAddress),
nameof(Employee.Phone),
nameof(Employee.MaritalStatus),
nameof(Employee.SalariedFlag),
nameof(Employee.Gender),
nameof(Employee.PayFrequency),
nameof(Employee.BaseRate),
nameof(Employee.VacationHours),
nameof(Employee.SickLeaveHours),
nameof(Employee.DepartmentName),
nameof(Employee.StartDate),
nameof(Employee.EndDate),
nameof(Employee.Status)
};
employeesGrid.Column("*").Filter();
employeesGrid.View = true;
employeesGrid.ViewLayoutColumns = 2;
employeesGrid.Column(nameof(Employee.EmployeeKey)).PrimaryKey();
@employeesGrid.Render()