...
DbNetGridCore employeesGrid = new DbNetGridCore("northwind", "employees join employeeterritories on employees.employeeid = employeeterritories.employeeid", "employees") { View = true };
...
employeesGrid.Bind(EventType.OnViewRecordSelected, "updateTitle");
employeesGrid.Column("TerritoryId").ForeignKey().GroupHeader().Lookup(new Lookup("territories", "TerritoryId", "territorydescription"));
...
DbNetComboCore territoriesCombo = new DbNetComboCore("northwind", "territories", "territoryid", "territorydescription", "territories") { ForeignKeyColumn = "regionid", Size = 10, MultipleSelect = true, AutoRowSelect = true };
DbNetComboCore regionsCombo = new DbNetComboCore("northwind", "regions", "regionid", "regiondescription", "regions") { Size = 10, MultipleSelect = true, AutoRowSelect = true };
territoriesCombo.AddLinkedControl(employeesGrid);
regionsCombo.AddLinkedControl(territoriesCombo);
@regionsCombo.Render()
...
|