/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties1 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.FilterDescriptorProperties filterDescriptorProperties1 = new C1.Win.Data.FilterDescriptorProperties(); C1.Win.Data.SortDescriptorProperties sortDescriptorProperties1 = new C1.Win.Data.SortDescriptorProperties(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SimpleBinding)); C1.Win.Data.ControlHandler controlHandler1 = new C1.Win.Data.ControlHandler(); this.c1DataSource1 = new C1.Win.Data.Entities.C1DataSource(); this.c1FlexGrid1 = new C1.Win.C1FlexGrid.C1FlexGrid(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1FlexGrid1)).BeginInit(); this.SuspendLayout(); // // c1DataSource1 // this.c1DataSource1.ContextType = typeof(TutorialsWinForms.NORTHWNDEntities); entityViewSourceProperties1.EntitySetName = "Products"; filterDescriptorProperties1.PropertyPath = "Discontinued"; filterDescriptorProperties1.Value = "true"; entityViewSourceProperties1.FilterDescriptors.Add(filterDescriptorProperties1); sortDescriptorProperties1.PropertyPath = "ProductID"; entityViewSourceProperties1.SortDescriptors.Add(sortDescriptorProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties1); // // c1FlexGrid1 // this.c1FlexGrid1.AllowAddNew = true; this.c1FlexGrid1.AllowDelete = true; this.c1FlexGrid1.AllowFiltering = true; this.c1FlexGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.c1FlexGrid1.ColumnInfo = resources.GetString("c1FlexGrid1.ColumnInfo"); controlHandler1.AutoLookup = true; this.c1DataSource1.SetControlHandler(this.c1FlexGrid1, controlHandler1); this.c1FlexGrid1.DataMember = "Products"; this.c1FlexGrid1.DataSource = this.c1DataSource1; this.c1FlexGrid1.Location = new System.Drawing.Point(4, 28); this.c1FlexGrid1.Name = "c1FlexGrid1"; this.c1FlexGrid1.Rows.Count = 1; this.c1FlexGrid1.Rows.DefaultSize = 19; this.c1FlexGrid1.Size = new System.Drawing.Size(1213, 304); this.c1FlexGrid1.TabIndex = 2; // // SimpleBinding // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1222, 355); this.Controls.Add(this.c1FlexGrid1); this.Name = "SimpleBinding"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1FlexGrid1)).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.components = new System.ComponentModel.Container(); C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties1 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.FilterDescriptorProperties filterDescriptorProperties1 = new C1.Win.Data.FilterDescriptorProperties(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.dataGridView2 = new System.Windows.Forms.DataGridView(); this.btnClose = new System.Windows.Forms.Button(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.btnPrevPage = new System.Windows.Forms.Button(); this.labelPage = new System.Windows.Forms.Label(); this.btnNextPage = new System.Windows.Forms.Button(); this.c1DataSource1 = new C1.Win.Data.Entities.C1DataSource(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).BeginInit(); this.SuspendLayout(); // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; this.comboBox1.Location = new System.Drawing.Point(74, 7); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(190, 21); this.comboBox1.TabIndex = 0; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(24, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(46, 13); this.label1.TabIndex = 1; this.label1.Text = "Country:"; // // dataGridView1 // this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Location = new System.Drawing.Point(3, 33); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Size = new System.Drawing.Size(418, 196); this.dataGridView1.TabIndex = 2; // // dataGridView2 // this.dataGridView2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView2.Location = new System.Drawing.Point(3, 264); this.dataGridView2.Name = "dataGridView2"; this.dataGridView2.Size = new System.Drawing.Size(418, 170); this.dataGridView2.TabIndex = 3; // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.Location = new System.Drawing.Point(346, 7); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(75, 23); this.btnClose.TabIndex = 9; this.btnClose.Text = "Close"; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // bindingSource1 // this.bindingSource1.CurrentChanged += new System.EventHandler(this.bindingSource1_CurrentChanged); // // btnPrevPage // this.btnPrevPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnPrevPage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnPrevPage.Location = new System.Drawing.Point(3, 235); this.btnPrevPage.Name = "btnPrevPage"; this.btnPrevPage.Size = new System.Drawing.Size(28, 23); this.btnPrevPage.TabIndex = 10; this.btnPrevPage.Text = "<"; this.btnPrevPage.UseVisualStyleBackColor = true; this.btnPrevPage.Click += new System.EventHandler(this.btnPrevPage_Click); // // labelPage // this.labelPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelPage.AutoSize = true; this.labelPage.Location = new System.Drawing.Point(35, 240); this.labelPage.Name = "labelPage"; this.labelPage.Size = new System.Drawing.Size(55, 13); this.labelPage.TabIndex = 11; this.labelPage.Text = "Page: 0/0"; // // btnNextPage // this.btnNextPage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnNextPage.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnNextPage.Location = new System.Drawing.Point(101, 235); this.btnNextPage.Name = "btnNextPage"; this.btnNextPage.Size = new System.Drawing.Size(28, 23); this.btnNextPage.TabIndex = 12; this.btnNextPage.Text = ">"; this.btnNextPage.UseVisualStyleBackColor = true; this.btnNextPage.Click += new System.EventHandler(this.btnNextPage_Click); // // c1DataSource1 // this.c1DataSource1.ContextType = typeof(Orders.NORTHWNDEntities); entityViewSourceProperties1.AutoLoad = false; entityViewSourceProperties1.EntitySetName = "Orders"; filterDescriptorProperties1.PropertyPath = "Customer.Country"; entityViewSourceProperties1.FilterDescriptors.Add(filterDescriptorProperties1); entityViewSourceProperties1.Include = "Customer, Order_Details.Product"; entityViewSourceProperties1.PageSize = 10; this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties1); // // OrdersViewCountry // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.btnNextPage); this.Controls.Add(this.labelPage); this.Controls.Add(this.btnPrevPage); this.Controls.Add(this.btnClose); this.Controls.Add(this.dataGridView2); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.label1); this.Controls.Add(this.comboBox1); this.Name = "OrdersViewCountry"; this.Size = new System.Drawing.Size(436, 450); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties1 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.FilterDescriptorProperties filterDescriptorProperties1 = new C1.Win.Data.FilterDescriptorProperties(); C1.Win.Data.SortDescriptorProperties sortDescriptorProperties1 = new C1.Win.Data.SortDescriptorProperties(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.dataGridView2 = new System.Windows.Forms.DataGridView(); this.btnAddOrder = new System.Windows.Forms.Button(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.btnClose = new System.Windows.Forms.Button(); this.c1DataSource1 = new C1.Win.Data.Entities.C1DataSource(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).BeginInit(); this.SuspendLayout(); // // comboBox1 // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; this.comboBox1.Location = new System.Drawing.Point(74, 7); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(190, 21); this.comboBox1.TabIndex = 0; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(41, 10); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(27, 13); this.label1.TabIndex = 1; this.label1.Text = "City:"; // // dataGridView1 // this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Location = new System.Drawing.Point(3, 33); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Size = new System.Drawing.Size(418, 183); this.dataGridView1.TabIndex = 2; this.dataGridView1.ColumnAdded += new System.Windows.Forms.DataGridViewColumnEventHandler(this.dataGridView1_ColumnAdded); // // bindingSource1 // this.bindingSource1.CurrentChanged += new System.EventHandler(this.bindingSource1_CurrentChanged); // // dataGridView2 // this.dataGridView2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView2.Location = new System.Drawing.Point(3, 251); this.dataGridView2.Name = "dataGridView2"; this.dataGridView2.Size = new System.Drawing.Size(418, 157); this.dataGridView2.TabIndex = 3; // // btnAddOrder // this.btnAddOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnAddOrder.Location = new System.Drawing.Point(321, 222); this.btnAddOrder.Name = "btnAddOrder"; this.btnAddOrder.Size = new System.Drawing.Size(100, 23); this.btnAddOrder.TabIndex = 4; this.btnAddOrder.Text = "Add order"; this.btnAddOrder.UseVisualStyleBackColor = true; this.btnAddOrder.Click += new System.EventHandler(this.btnAddOrder_Click); // // checkBox1 // this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkBox1.AutoSize = true; this.checkBox1.Location = new System.Drawing.Point(101, 419); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(182, 17); this.checkBox1.TabIndex = 8; this.checkBox1.Text = "Show only discontinued products"; this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.Location = new System.Drawing.Point(346, 7); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(75, 23); this.btnClose.TabIndex = 9; this.btnClose.Text = "Close"; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // c1DataSource1 // this.c1DataSource1.ContextType = typeof(Orders.NORTHWNDEntities); entityViewSourceProperties1.AutoLoad = false; entityViewSourceProperties1.EntitySetName = "Orders"; filterDescriptorProperties1.PropertyPath = "Customer.City"; entityViewSourceProperties1.FilterDescriptors.Add(filterDescriptorProperties1); entityViewSourceProperties1.Include = "Customer, Order_Details.Product"; sortDescriptorProperties1.PropertyPath = "OrderID"; entityViewSourceProperties1.SortDescriptors.Add(sortDescriptorProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties1); // // OrdersView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.btnClose); this.Controls.Add(this.checkBox1); this.Controls.Add(this.btnAddOrder); this.Controls.Add(this.dataGridView2); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.label1); this.Controls.Add(this.comboBox1); this.Name = "OrdersView"; this.Size = new System.Drawing.Size(436, 450); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { C1.Win.Data.ControlHandler controlHandler1 = new C1.Win.Data.ControlHandler(); C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties1 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.FilterDescriptorProperties filterDescriptorProperties1 = new C1.Win.Data.FilterDescriptorProperties(); C1.Win.Data.SortDescriptorProperties sortDescriptorProperties1 = new C1.Win.Data.SortDescriptorProperties(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.c1DataSource1 = new C1.Win.Data.Entities.C1DataSource(); this.productIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.productNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.supplierIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.categoryIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.quantityPerUnitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.unitPriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.unitsInStockDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.unitsOnOrderDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.reorderLevelDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.discontinuedDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.categoryDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.supplierDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).BeginInit(); this.SuspendLayout(); // // dataGridView1 // this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView1.AutoGenerateColumns = false; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.productIDDataGridViewTextBoxColumn, this.productNameDataGridViewTextBoxColumn, this.supplierIDDataGridViewTextBoxColumn, this.categoryIDDataGridViewTextBoxColumn, this.quantityPerUnitDataGridViewTextBoxColumn, this.unitPriceDataGridViewTextBoxColumn, this.unitsInStockDataGridViewTextBoxColumn, this.unitsOnOrderDataGridViewTextBoxColumn, this.reorderLevelDataGridViewTextBoxColumn, this.discontinuedDataGridViewCheckBoxColumn, this.categoryDataGridViewTextBoxColumn, this.supplierDataGridViewTextBoxColumn }); controlHandler1.AutoLookup = true; controlHandler1.VirtualMode = false; this.c1DataSource1.SetControlHandler(this.dataGridView1, controlHandler1); this.dataGridView1.DataMember = "Products"; this.dataGridView1.DataSource = this.c1DataSource1; this.dataGridView1.Location = new System.Drawing.Point(12, 29); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Size = new System.Drawing.Size(1053, 477); this.dataGridView1.TabIndex = 0; // // c1DataSource1 // this.c1DataSource1.ContextType = typeof(TutorialsWinForms.NORTHWNDEntities); entityViewSourceProperties1.EntitySetName = "Products"; filterDescriptorProperties1.PropertyPath = "Discontinued"; filterDescriptorProperties1.Value = "true"; entityViewSourceProperties1.FilterDescriptors.Add(filterDescriptorProperties1); entityViewSourceProperties1.Include = ""; sortDescriptorProperties1.PropertyPath = "ProductID"; entityViewSourceProperties1.SortDescriptors.Add(sortDescriptorProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties1); // // productIDDataGridViewTextBoxColumn // this.productIDDataGridViewTextBoxColumn.DataPropertyName = "ProductID"; this.productIDDataGridViewTextBoxColumn.HeaderText = "ProductID"; this.productIDDataGridViewTextBoxColumn.Name = "productIDDataGridViewTextBoxColumn"; // // productNameDataGridViewTextBoxColumn // this.productNameDataGridViewTextBoxColumn.DataPropertyName = "ProductName"; this.productNameDataGridViewTextBoxColumn.HeaderText = "ProductName"; this.productNameDataGridViewTextBoxColumn.Name = "productNameDataGridViewTextBoxColumn"; // // supplierIDDataGridViewTextBoxColumn // this.supplierIDDataGridViewTextBoxColumn.DataPropertyName = "SupplierID"; this.supplierIDDataGridViewTextBoxColumn.HeaderText = "SupplierID"; this.supplierIDDataGridViewTextBoxColumn.Name = "supplierIDDataGridViewTextBoxColumn"; // // categoryIDDataGridViewTextBoxColumn // this.categoryIDDataGridViewTextBoxColumn.DataPropertyName = "CategoryID"; this.categoryIDDataGridViewTextBoxColumn.HeaderText = "CategoryID"; this.categoryIDDataGridViewTextBoxColumn.Name = "categoryIDDataGridViewTextBoxColumn"; // // quantityPerUnitDataGridViewTextBoxColumn // this.quantityPerUnitDataGridViewTextBoxColumn.DataPropertyName = "QuantityPerUnit"; this.quantityPerUnitDataGridViewTextBoxColumn.HeaderText = "QuantityPerUnit"; this.quantityPerUnitDataGridViewTextBoxColumn.Name = "quantityPerUnitDataGridViewTextBoxColumn"; // // unitPriceDataGridViewTextBoxColumn // this.unitPriceDataGridViewTextBoxColumn.DataPropertyName = "UnitPrice"; this.unitPriceDataGridViewTextBoxColumn.HeaderText = "UnitPrice"; this.unitPriceDataGridViewTextBoxColumn.Name = "unitPriceDataGridViewTextBoxColumn"; // // unitsInStockDataGridViewTextBoxColumn // this.unitsInStockDataGridViewTextBoxColumn.DataPropertyName = "UnitsInStock"; this.unitsInStockDataGridViewTextBoxColumn.HeaderText = "UnitsInStock"; this.unitsInStockDataGridViewTextBoxColumn.Name = "unitsInStockDataGridViewTextBoxColumn"; // // unitsOnOrderDataGridViewTextBoxColumn // this.unitsOnOrderDataGridViewTextBoxColumn.DataPropertyName = "UnitsOnOrder"; this.unitsOnOrderDataGridViewTextBoxColumn.HeaderText = "UnitsOnOrder"; this.unitsOnOrderDataGridViewTextBoxColumn.Name = "unitsOnOrderDataGridViewTextBoxColumn"; // // reorderLevelDataGridViewTextBoxColumn // this.reorderLevelDataGridViewTextBoxColumn.DataPropertyName = "ReorderLevel"; this.reorderLevelDataGridViewTextBoxColumn.HeaderText = "ReorderLevel"; this.reorderLevelDataGridViewTextBoxColumn.Name = "reorderLevelDataGridViewTextBoxColumn"; // // discontinuedDataGridViewCheckBoxColumn // this.discontinuedDataGridViewCheckBoxColumn.DataPropertyName = "Discontinued"; this.discontinuedDataGridViewCheckBoxColumn.HeaderText = "Discontinued"; this.discontinuedDataGridViewCheckBoxColumn.Name = "discontinuedDataGridViewCheckBoxColumn"; // // categoryDataGridViewTextBoxColumn // this.categoryDataGridViewTextBoxColumn.DataPropertyName = "Category"; this.categoryDataGridViewTextBoxColumn.HeaderText = "Category"; this.categoryDataGridViewTextBoxColumn.Name = "categoryDataGridViewTextBoxColumn"; // // supplierDataGridViewTextBoxColumn // this.supplierDataGridViewTextBoxColumn.DataPropertyName = "Supplier"; this.supplierDataGridViewTextBoxColumn.HeaderText = "Supplier"; this.supplierDataGridViewTextBoxColumn.Name = "supplierDataGridViewTextBoxColumn"; // // SimpleBinding // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1101, 537); this.Controls.Add(this.dataGridView1); this.Name = "SimpleBinding"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).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() { C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties1 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties2 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.FilterDescriptorProperties filterDescriptorProperties1 = new C1.Win.Data.FilterDescriptorProperties(); C1.Win.Data.SortDescriptorProperties sortDescriptorProperties1 = new C1.Win.Data.SortDescriptorProperties(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerSideFiltering)); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.c1DataSource1 = new C1.Win.Data.Entities.C1DataSource(); this.btnSaveChanges = new System.Windows.Forms.Button(); this.c1FlexGrid1 = new C1.Win.C1FlexGrid.C1FlexGrid(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1FlexGrid1)).BeginInit(); this.SuspendLayout(); // // comboBox1 // this.comboBox1.DataSource = this.c1DataSource1; this.comboBox1.DisplayMember = "Categories.CategoryName"; this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; this.comboBox1.Location = new System.Drawing.Point(32, 27); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(175, 21); this.comboBox1.TabIndex = 0; this.comboBox1.ValueMember = "Categories.CategoryID"; this.comboBox1.SelectedValueChanged += new System.EventHandler(this.comboBox1_SelectedValueChanged); // // c1DataSource1 // this.c1DataSource1.ContextType = typeof(TutorialsWinForms.NORTHWNDEntities); entityViewSourceProperties1.EntitySetName = "Categories"; entityViewSourceProperties2.EntitySetName = "Products"; filterDescriptorProperties1.PropertyPath = "CategoryID"; filterDescriptorProperties1.Value = "1"; entityViewSourceProperties2.FilterDescriptors.Add(filterDescriptorProperties1); sortDescriptorProperties1.PropertyPath = "ProductName"; entityViewSourceProperties2.SortDescriptors.Add(sortDescriptorProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties2); // // btnSaveChanges // this.btnSaveChanges.Location = new System.Drawing.Point(702, 370); this.btnSaveChanges.Name = "btnSaveChanges"; this.btnSaveChanges.Size = new System.Drawing.Size(104, 23); this.btnSaveChanges.TabIndex = 2; this.btnSaveChanges.Text = "Save Changes"; this.btnSaveChanges.UseVisualStyleBackColor = true; this.btnSaveChanges.Click += new System.EventHandler(this.btnSaveChanges_Click); // // ServerSideFiltering // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(844, 433); // // c1FlexGrid1 // this.c1FlexGrid1.AllowAddNew = true; this.c1FlexGrid1.AllowDelete = true; this.c1FlexGrid1.AllowFiltering = true; this.c1FlexGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.c1FlexGrid1.ColumnInfo = resources.GetString("c1FlexGrid1.ColumnInfo"); this.c1FlexGrid1.DataMember = "Products"; this.c1FlexGrid1.DataSource = this.c1DataSource1; this.c1FlexGrid1.Location = new System.Drawing.Point(32, 68); this.c1FlexGrid1.Name = "c1FlexGrid1"; this.c1FlexGrid1.Rows.Count = 1; this.c1FlexGrid1.Rows.DefaultSize = 19; this.c1FlexGrid1.Size = new System.Drawing.Size(777, 278); this.c1FlexGrid1.TabIndex = 17; this.Controls.Add(this.c1FlexGrid1); this.Controls.Add(this.btnSaveChanges); this.Controls.Add(this.comboBox1); this.Name = "ServerSideFiltering"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1FlexGrid1)).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() { C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties1 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.Entities.EntityViewSourceProperties entityViewSourceProperties2 = new C1.Win.Data.Entities.EntityViewSourceProperties(); C1.Win.Data.FilterDescriptorProperties filterDescriptorProperties1 = new C1.Win.Data.FilterDescriptorProperties(); C1.Win.Data.SortDescriptorProperties sortDescriptorProperties1 = new C1.Win.Data.SortDescriptorProperties(); C1.Win.Data.ControlHandler controlHandler1 = new C1.Win.Data.ControlHandler(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.c1DataSource1 = new C1.Win.Data.Entities.C1DataSource(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.btnSaveChanges = new System.Windows.Forms.Button(); this.productIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.productNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.supplierIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.categoryIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.quantityPerUnitDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.unitPriceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.unitsInStockDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.unitsOnOrderDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.reorderLevelDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.discontinuedDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // // comboBox1 // this.comboBox1.DataSource = this.c1DataSource1; this.comboBox1.DisplayMember = "Categories.CategoryName"; this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; this.comboBox1.Location = new System.Drawing.Point(32, 27); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(175, 21); this.comboBox1.TabIndex = 0; this.comboBox1.ValueMember = "Categories.CategoryID"; this.comboBox1.SelectedValueChanged += new System.EventHandler(this.comboBox1_SelectedValueChanged); // // c1DataSource1 // this.c1DataSource1.ContextType = typeof(TutorialsWinForms.NORTHWNDEntities); entityViewSourceProperties1.EntitySetName = "Categories"; entityViewSourceProperties2.EntitySetName = "Products"; filterDescriptorProperties1.PropertyPath = "CategoryID"; filterDescriptorProperties1.Value = "1"; entityViewSourceProperties2.FilterDescriptors.Add(filterDescriptorProperties1); sortDescriptorProperties1.PropertyPath = "ProductName"; entityViewSourceProperties2.SortDescriptors.Add(sortDescriptorProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties1); this.c1DataSource1.ViewSourceCollection.Add(entityViewSourceProperties2); // // dataGridView1 // this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView1.AutoGenerateColumns = false; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.productIDDataGridViewTextBoxColumn, this.productNameDataGridViewTextBoxColumn, this.supplierIDDataGridViewTextBoxColumn, this.categoryIDDataGridViewTextBoxColumn, this.quantityPerUnitDataGridViewTextBoxColumn, this.unitPriceDataGridViewTextBoxColumn, this.unitsInStockDataGridViewTextBoxColumn, this.unitsOnOrderDataGridViewTextBoxColumn, this.reorderLevelDataGridViewTextBoxColumn, this.discontinuedDataGridViewCheckBoxColumn }); this.c1DataSource1.SetControlHandler(this.dataGridView1, controlHandler1); this.dataGridView1.DataMember = "Products"; this.dataGridView1.DataSource = this.c1DataSource1; this.dataGridView1.Location = new System.Drawing.Point(32, 72); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Size = new System.Drawing.Size(845, 456); this.dataGridView1.TabIndex = 1; // // btnSaveChanges // this.btnSaveChanges.Location = new System.Drawing.Point(773, 544); this.btnSaveChanges.Name = "btnSaveChanges"; this.btnSaveChanges.Size = new System.Drawing.Size(104, 23); this.btnSaveChanges.TabIndex = 2; this.btnSaveChanges.Text = "Save Changes"; this.btnSaveChanges.UseVisualStyleBackColor = true; this.btnSaveChanges.Click += new System.EventHandler(this.btnSaveChanges_Click); // // productIDDataGridViewTextBoxColumn // this.productIDDataGridViewTextBoxColumn.DataPropertyName = "ProductID"; this.productIDDataGridViewTextBoxColumn.HeaderText = "ProductID"; this.productIDDataGridViewTextBoxColumn.Name = "productIDDataGridViewTextBoxColumn"; // // productNameDataGridViewTextBoxColumn // this.productNameDataGridViewTextBoxColumn.DataPropertyName = "ProductName"; this.productNameDataGridViewTextBoxColumn.HeaderText = "ProductName"; this.productNameDataGridViewTextBoxColumn.Name = "productNameDataGridViewTextBoxColumn"; // // supplierIDDataGridViewTextBoxColumn // this.supplierIDDataGridViewTextBoxColumn.DataPropertyName = "SupplierID"; this.supplierIDDataGridViewTextBoxColumn.HeaderText = "SupplierID"; this.supplierIDDataGridViewTextBoxColumn.Name = "supplierIDDataGridViewTextBoxColumn"; // // categoryIDDataGridViewTextBoxColumn // this.categoryIDDataGridViewTextBoxColumn.DataPropertyName = "CategoryID"; this.categoryIDDataGridViewTextBoxColumn.HeaderText = "CategoryID"; this.categoryIDDataGridViewTextBoxColumn.Name = "categoryIDDataGridViewTextBoxColumn"; // // quantityPerUnitDataGridViewTextBoxColumn // this.quantityPerUnitDataGridViewTextBoxColumn.DataPropertyName = "QuantityPerUnit"; this.quantityPerUnitDataGridViewTextBoxColumn.HeaderText = "QuantityPerUnit"; this.quantityPerUnitDataGridViewTextBoxColumn.Name = "quantityPerUnitDataGridViewTextBoxColumn"; // // unitPriceDataGridViewTextBoxColumn // this.unitPriceDataGridViewTextBoxColumn.DataPropertyName = "UnitPrice"; this.unitPriceDataGridViewTextBoxColumn.HeaderText = "UnitPrice"; this.unitPriceDataGridViewTextBoxColumn.Name = "unitPriceDataGridViewTextBoxColumn"; // // unitsInStockDataGridViewTextBoxColumn // this.unitsInStockDataGridViewTextBoxColumn.DataPropertyName = "UnitsInStock"; this.unitsInStockDataGridViewTextBoxColumn.HeaderText = "UnitsInStock"; this.unitsInStockDataGridViewTextBoxColumn.Name = "unitsInStockDataGridViewTextBoxColumn"; // // unitsOnOrderDataGridViewTextBoxColumn // this.unitsOnOrderDataGridViewTextBoxColumn.DataPropertyName = "UnitsOnOrder"; this.unitsOnOrderDataGridViewTextBoxColumn.HeaderText = "UnitsOnOrder"; this.unitsOnOrderDataGridViewTextBoxColumn.Name = "unitsOnOrderDataGridViewTextBoxColumn"; // // reorderLevelDataGridViewTextBoxColumn // this.reorderLevelDataGridViewTextBoxColumn.DataPropertyName = "ReorderLevel"; this.reorderLevelDataGridViewTextBoxColumn.HeaderText = "ReorderLevel"; this.reorderLevelDataGridViewTextBoxColumn.Name = "reorderLevelDataGridViewTextBoxColumn"; // // discontinuedDataGridViewCheckBoxColumn // this.discontinuedDataGridViewCheckBoxColumn.DataPropertyName = "Discontinued"; this.discontinuedDataGridViewCheckBoxColumn.HeaderText = "Discontinued"; this.discontinuedDataGridViewCheckBoxColumn.Name = "discontinuedDataGridViewCheckBoxColumn"; // // ServerSideFiltering // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(907, 579); this.Controls.Add(this.btnSaveChanges); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.comboBox1); this.Name = "ServerSideFiltering"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.c1DataSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.ResumeLayout(false); }