Navigation: <Root level>

DbNetGridCore

 

 

 

 

 

DbNetGridCore

 

DbNetGridCore is a data-driven grid component that has built-in searching, sorting, export, copy and editing capabilities that can be added to any web page with just a few lines of code.

 

 

DbNetGridCore employeesGrid = new DbNetGridCore("northwind", "employees");

employeesGrid.Column("ReportsTo").Lookup(new Lookup("employees", "employeeid", "lastname + ', ' + firstName"));

employeesGrid.Update = true;

employeesGrid.Insert = true;

employeesGrid.Navigation = false;

employeesGrid.Column(new string[] { "notes", "photo","photopath" }).Hidden();

employeesGrid.Column("country").Lookup(typeof(CountryEnum), true);

employeesGrid.EditControl.LayoutColumns = 2;

        employeesGrid.EditControl.Column("notes").ControlType(EditControlType.TextArea).Hidden().DataType(typeof(string));

employeesGrid.EditControl.Column("ReportsTo").Lookup(new Lookup("employees", "employeeid", "lastname + ', ' + firstName"));

employeesGrid.EditControl.Bind(EventType.OnFormElementCreated, "configureFormElement");

@employeesGrid.Render()

 

 

 

 

Copyright © 2023 DbNetLink