Razor
DbNetGridCore productsGrid = new DbNetGridCore("northwind", "products");
productsGrid.Column("supplierid").Lookup(new Lookup("suppliers", "supplierid", "companyname")).Label("Supplier");
productsGrid.Column("categoryid").Lookup(new Lookup("categories", "categoryid", "categoryname")).Label("Catgeory");
productsGrid.Column("unitprice").Format("c");
productsGrid.Bind(EventType.OnRowTransform, "highlightOrderLevels");
productsGrid.Bind(EventType.OnViewRecordSelected, "highlightViewOrderLevels");
productsGrid.View = true;
productsGrid.ViewLayoutColumns = 2;
@productsGrid.Render()