/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode(); this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colOrderID = new DevExpress.XtraGrid.Columns.GridColumn(); this.colEmployeeFirstName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colEmployeeLastName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colOrderDate = new DevExpress.XtraGrid.Columns.GridColumn(); this.colFreight = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.xpCollection1 = new DevExpress.Xpo.XPCollection(); this.unitOfWork1 = new DevExpress.Xpo.UnitOfWork(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colCustomerID = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCompanyName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colContactTitle = new DevExpress.XtraGrid.Columns.GridColumn(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.btnFilterStandard = new DevExpress.XtraEditors.SimpleButton(); this.btnFiterSimplified = new DevExpress.XtraEditors.SimpleButton(); this.btnClear = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xpCollection1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.unitOfWork1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); this.SuspendLayout(); // // gridView2 // this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colOrderID, this.colEmployeeFirstName, this.colEmployeeLastName, this.colOrderDate, this.colFreight }); this.gridView2.GridControl = this.gridControl1; this.gridView2.Name = "gridView2"; this.gridView2.OptionsView.ShowGroupPanel = false; // // colOrderID // this.colOrderID.Caption = "OrderID"; this.colOrderID.FieldName = "OrderID"; this.colOrderID.Name = "colOrderID"; this.colOrderID.Visible = true; this.colOrderID.VisibleIndex = 0; // // colEmployeeFirstName // this.colEmployeeFirstName.Caption = "Employee First Name"; this.colEmployeeFirstName.FieldName = "Employee.FirstName"; this.colEmployeeFirstName.Name = "colEmployeeFirstName"; this.colEmployeeFirstName.Visible = true; this.colEmployeeFirstName.VisibleIndex = 1; // // colEmployeeLastName // this.colEmployeeLastName.Caption = "Employee Last Name"; this.colEmployeeLastName.FieldName = "Employee.LastName"; this.colEmployeeLastName.Name = "colEmployeeLastName"; this.colEmployeeLastName.Visible = true; this.colEmployeeLastName.VisibleIndex = 2; // // colOrderDate // this.colOrderDate.Caption = "Order Date"; this.colOrderDate.FieldName = "OrderDate"; this.colOrderDate.Name = "colOrderDate"; this.colOrderDate.Visible = true; this.colOrderDate.VisibleIndex = 3; // // colFreight // this.colFreight.Caption = "Freight"; this.colFreight.FieldName = "Freight"; this.colFreight.Name = "colFreight"; this.colFreight.Visible = true; this.colFreight.VisibleIndex = 4; // // gridControl1 // this.gridControl1.DataSource = this.xpCollection1; this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill; gridLevelNode1.LevelTemplate = this.gridView2; gridLevelNode1.RelationName = "Orders"; this.gridControl1.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { gridLevelNode1 }); this.gridControl1.Location = new System.Drawing.Point(0, 0); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.ShowOnlyPredefinedDetails = true; this.gridControl1.Size = new System.Drawing.Size(547, 279); this.gridControl1.TabIndex = 1; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1, this.gridView2 }); // // xpCollection1 // this.xpCollection1.DisplayableProperties = "This;CustomerID;CompanyName;ContactTitle;Orders"; this.xpCollection1.ObjectType = typeof(AggregateFilterOnAssociatedCollection.Customer); this.xpCollection1.Session = this.unitOfWork1; // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colCustomerID, this.colCompanyName, this.colContactTitle }); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.OptionsView.ShowFooter = true; this.gridView1.OptionsView.ShowGroupPanel = false; // // colCustomerID // this.colCustomerID.Caption = "CustomerID"; this.colCustomerID.FieldName = "CustomerID"; this.colCustomerID.Name = "colCustomerID"; this.colCustomerID.SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Count; this.colCustomerID.Visible = true; this.colCustomerID.VisibleIndex = 0; // // colCompanyName // this.colCompanyName.Caption = "CompanyName"; this.colCompanyName.FieldName = "CompanyName"; this.colCompanyName.Name = "colCompanyName"; this.colCompanyName.Visible = true; this.colCompanyName.VisibleIndex = 1; // // colContactTitle // this.colContactTitle.Caption = "ContactTitle"; this.colContactTitle.FieldName = "ContactTitle"; this.colContactTitle.Name = "colContactTitle"; this.colContactTitle.Visible = true; this.colContactTitle.VisibleIndex = 2; // // panelControl1 // this.panelControl1.Controls.Add(this.labelControl2); this.panelControl1.Controls.Add(this.labelControl1); this.panelControl1.Controls.Add(this.btnFilterStandard); this.panelControl1.Controls.Add(this.btnFiterSimplified); this.panelControl1.Controls.Add(this.btnClear); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelControl1.Location = new System.Drawing.Point(0, 279); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(547, 88); this.panelControl1.TabIndex = 0; // // labelControl2 // this.labelControl2.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.Horizontal; this.labelControl2.Location = new System.Drawing.Point(16, 64); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(63, 13); this.labelControl2.TabIndex = 4; this.labelControl2.Text = "labelControl2"; // // labelControl1 // this.labelControl1.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.Horizontal; this.labelControl1.Location = new System.Drawing.Point(16, 40); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(63, 13); this.labelControl1.TabIndex = 3; this.labelControl1.Text = "labelControl1"; // // btnFilterStandard // this.btnFilterStandard.Location = new System.Drawing.Point(18, 8); this.btnFilterStandard.Name = "btnFilterStandard"; this.btnFilterStandard.Size = new System.Drawing.Size(184, 23); this.btnFilterStandard.TabIndex = 2; this.btnFilterStandard.Text = "Apply Filter (Standard Syntax)"; this.btnFilterStandard.Click += new System.EventHandler(this.btnFiterStandard_Click); // // btnFiterSimplified // this.btnFiterSimplified.Location = new System.Drawing.Point(208, 8); this.btnFiterSimplified.Name = "btnFiterSimplified"; this.btnFiterSimplified.Size = new System.Drawing.Size(184, 23); this.btnFiterSimplified.TabIndex = 2; this.btnFiterSimplified.Text = "Apply Filter (Simplified Syntax)"; this.btnFiterSimplified.Click += new System.EventHandler(this.btnFiterSimplified_Click); // // btnClear // this.btnClear.Location = new System.Drawing.Point(400, 8); this.btnClear.Name = "btnClear"; this.btnClear.Size = new System.Drawing.Size(75, 23); this.btnClear.TabIndex = 1; this.btnClear.Text = "Clear Filter"; this.btnClear.Click += new System.EventHandler(this.btnClear_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(547, 367); this.Controls.Add(this.gridControl1); this.Controls.Add(this.panelControl1); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xpCollection1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.unitOfWork1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.colCustomers = new DevExpress.Xpo.XPCollection(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colPhone = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridControl2 = new DevExpress.XtraGrid.GridControl(); this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colOrderDate = new DevExpress.XtraGrid.Columns.GridColumn(); this.colFreight = new DevExpress.XtraGrid.Columns.GridColumn(); this.splitter1 = new System.Windows.Forms.Splitter(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colCustomers)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit(); this.SuspendLayout(); // // gridControl1 // this.gridControl1.DataSource = this.colCustomers; this.gridControl1.Dock = System.Windows.Forms.DockStyle.Top; this.gridControl1.Location = new System.Drawing.Point(0, 0); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(536, 173); this.gridControl1.TabIndex = 0; this.gridControl1.UseEmbeddedNavigator = true; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // colCustomers // this.colCustomers.ObjectType = typeof(MasterDetailGrids.Customer); // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colName, this.colPhone }); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsDetail.EnableMasterViewMode = false; this.gridView1.OptionsView.ShowGroupPanel = false; // // colName // this.colName.Caption = "Name"; this.colName.FieldName = "Name"; this.colName.Name = "colName"; this.colName.Visible = true; this.colName.VisibleIndex = 0; // // colPhone // this.colPhone.Caption = "Phone"; this.colPhone.FieldName = "Phone"; this.colPhone.Name = "colPhone"; this.colPhone.Visible = true; this.colPhone.VisibleIndex = 1; // // gridControl2 // this.gridControl2.DataMember = "Orders"; this.gridControl2.DataSource = this.colCustomers; this.gridControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl2.Location = new System.Drawing.Point(0, 176); this.gridControl2.MainView = this.gridView2; this.gridControl2.Name = "gridControl2"; this.gridControl2.Size = new System.Drawing.Size(536, 198); this.gridControl2.TabIndex = 1; this.gridControl2.UseEmbeddedNavigator = true; this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView2 }); // // gridView2 // this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colOrderDate, this.colFreight }); this.gridView2.GridControl = this.gridControl2; this.gridView2.Name = "gridView2"; this.gridView2.OptionsView.ShowGroupPanel = false; // // colOrderDate // this.colOrderDate.Caption = "OrderDate"; this.colOrderDate.FieldName = "OrderDate"; this.colOrderDate.Name = "colOrderDate"; this.colOrderDate.Visible = true; this.colOrderDate.VisibleIndex = 0; // // colFreight // this.colFreight.Caption = "Freight"; this.colFreight.FieldName = "Freight"; this.colFreight.Name = "colFreight"; this.colFreight.Visible = true; this.colFreight.VisibleIndex = 1; // // splitter1 // this.splitter1.Dock = System.Windows.Forms.DockStyle.Top; this.splitter1.Location = new System.Drawing.Point(0, 173); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(536, 3); this.splitter1.TabIndex = 2; this.splitter1.TabStop = false; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(536, 374); this.Controls.Add(this.gridControl2); this.Controls.Add(this.splitter1); this.Controls.Add(this.gridControl1); this.Name = "Form1"; this.Text = "How to use two XtraGrid controls to display collections of persistent objects wit" + "h a one-to-many association"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colCustomers)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.dataNavigator1 = new DevExpress.XtraEditors.DataNavigator(); this.xpCollection1 = new DevExpress.Xpo.XPCollection(); this.unitOfWork1 = new DevExpress.Xpo.UnitOfWork(); this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); this.textEdit2 = new DevExpress.XtraEditors.TextEdit(); this.textEdit3 = new DevExpress.XtraEditors.TextEdit(); this.textEdit4 = new DevExpress.XtraEditors.TextEdit(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.textEdit5 = new DevExpress.XtraEditors.TextEdit(); this.textBox1 = new System.Windows.Forms.TextBox(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)(this.xpCollection1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.unitOfWork1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit5.Properties)).BeginInit(); this.SuspendLayout(); // // dataNavigator1 // this.dataNavigator1.DataSource = this.xpCollection1; this.dataNavigator1.Location = new System.Drawing.Point(14, 195); this.dataNavigator1.Name = "dataNavigator1"; this.dataNavigator1.Size = new System.Drawing.Size(423, 28); this.dataNavigator1.TabIndex = 5; this.dataNavigator1.Text = "dataNavigator1"; this.dataNavigator1.TextLocation = DevExpress.XtraEditors.NavigatorButtonsTextLocation.Center; // // xpCollection1 // this.xpCollection1.ObjectType = typeof(Northwind.Customer); this.xpCollection1.Session = this.unitOfWork1; // // textEdit1 // this.textEdit1.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.xpCollection1, "ContactTitle", true)); this.textEdit1.Location = new System.Drawing.Point(216, 47); this.textEdit1.Name = "textEdit1"; this.textEdit1.Size = new System.Drawing.Size(221, 22); this.textEdit1.TabIndex = 1; // // textEdit2 // this.textEdit2.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.xpCollection1, "CompanyName", true)); this.textEdit2.Location = new System.Drawing.Point(216, 84); this.textEdit2.Name = "textEdit2"; this.textEdit2.Size = new System.Drawing.Size(221, 22); this.textEdit2.TabIndex = 2; // // textEdit3 // this.textEdit3.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.xpCollection1, "Address", true)); this.textEdit3.Location = new System.Drawing.Point(216, 121); this.textEdit3.Name = "textEdit3"; this.textEdit3.Size = new System.Drawing.Size(221, 22); this.textEdit3.TabIndex = 3; // // textEdit4 // this.textEdit4.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.xpCollection1, "Orders.ID", true)); this.textEdit4.Location = new System.Drawing.Point(216, 158); this.textEdit4.Name = "textEdit4"; this.textEdit4.Size = new System.Drawing.Size(221, 22); this.textEdit4.TabIndex = 4; // // label1 // this.label1.Location = new System.Drawing.Point(14, 47); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(192, 27); this.label1.TabIndex = 5; this.label1.Text = "Contact Title (Immediate):"; // // label2 // this.label2.Location = new System.Drawing.Point(14, 84); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(192, 27); this.label2.TabIndex = 6; this.label2.Text = "Company Name (Delayed):"; // // label3 // this.label3.Location = new System.Drawing.Point(14, 121); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(192, 27); this.label3.TabIndex = 7; this.label3.Text = "Address (Delayed):"; // // label4 // this.label4.Location = new System.Drawing.Point(14, 158); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(192, 27); this.label4.TabIndex = 8; this.label4.Text = "Orders.ID (Delayed):"; // // label5 // this.label5.Location = new System.Drawing.Point(14, 10); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(192, 27); this.label5.TabIndex = 5; this.label5.Text = "CustomerID (Immediate):"; // // textEdit5 // this.textEdit5.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.xpCollection1, "CustomerID", true)); this.textEdit5.Location = new System.Drawing.Point(216, 10); this.textEdit5.Name = "textEdit5"; this.textEdit5.Size = new System.Drawing.Size(221, 22); this.textEdit5.TabIndex = 0; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(14, 297); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(423, 228); this.textBox1.TabIndex = 9; this.textBox1.WordWrap = false; // // simpleButton1 // this.simpleButton1.Location = new System.Drawing.Point(14, 263); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(423, 27); this.simpleButton1.TabIndex = 10; this.simpleButton1.Text = "Read CompanyName of object #3 (Delayed)"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // simpleButton2 // this.simpleButton2.Location = new System.Drawing.Point(14, 230); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(423, 26); this.simpleButton2.TabIndex = 11; this.simpleButton2.Text = "Read ContactTitle of object #3 (already loaded)"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(453, 467); this.Controls.Add(this.simpleButton2); this.Controls.Add(this.simpleButton1); this.Controls.Add(this.textBox1); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.textEdit4); this.Controls.Add(this.textEdit3); this.Controls.Add(this.textEdit2); this.Controls.Add(this.textEdit1); this.Controls.Add(this.dataNavigator1); this.Controls.Add(this.label5); this.Controls.Add(this.textEdit5); this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.xpCollection1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.unitOfWork1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit5.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }