Specifying Columns |
Razor
DbNetGridCore customersGrid = new DbNetGridCore("northwind", "customers");
customersGrid.Columns = new List() { "CompanyName", "Address + ', ' + City as Addr", "Country", "Phone + '/' + Fax as PhoneFax" };
customersGrid.Labels = new List() { "Company Name", "Address", "Country", "Phone/Fax" };
@customersGrid.Render()