/// <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();
     EhLib.WinForms.CountCalculator countCalculator1 = new EhLib.WinForms.CountCalculator();
     EhLib.WinForms.SumCalculator   sumCalculator1   = new EhLib.WinForms.SumCalculator();
     EhLib.WinForms.SumCalculator   sumCalculator2   = new EhLib.WinForms.SumCalculator();
     EhLib.WinForms.CountCalculator countCalculator2 = new EhLib.WinForms.CountCalculator();
     this.dataGridFooterRow7         = new EhLib.WinForms.DataGridFooterRow();
     this.dataGridColumnFooterItem1  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem3  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem5  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem7  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem9  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridFooterRow8         = new EhLib.WinForms.DataGridFooterRow();
     this.dataGridColumnFooterItem2  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem4  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem6  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem8  = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem10 = new EhLib.WinForms.DataGridColumnFooterItem();
     this.tabPage1    = new System.Windows.Forms.TabPage();
     this.dataGridEh1 = new EhLib.WinForms.DataGridEh();
     this.order_DetailsBindingSource = new System.Windows.Forms.BindingSource(this.components);
     this.northwindDataSet           = new MainDemo.NorthwindDataSet();
     this.dataGridTextColumn1        = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridTextColumn2        = new EhLib.WinForms.DataGridTextColumn();
     this.columnUnitPrice            = new EhLib.WinForms.DataGridTextColumn();
     this.columnQuantity             = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridTextColumn5        = new EhLib.WinForms.DataGridTextColumn();
     this.tabControl1  = new System.Windows.Forms.TabControl();
     this.tabPage2     = new System.Windows.Forms.TabPage();
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.label1       = new System.Windows.Forms.Label();
     this.panel1       = new System.Windows.Forms.Panel();
     this.order_DetailsTableAdapter = new MainDemo.NorthwindDataSetTableAdapters.Order_DetailsTableAdapter();
     this.tableAdapterManager       = new MainDemo.NorthwindDataSetTableAdapters.TableAdapterManager();
     this.tabPage1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridEh1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.order_DetailsBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.northwindDataSet)).BeginInit();
     this.tabControl1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // dataGridFooterRow7
     //
     this.dataGridFooterRow7.BoundItems.Add(this.dataGridColumnFooterItem1);
     this.dataGridFooterRow7.BoundItems.Add(this.dataGridColumnFooterItem3);
     this.dataGridFooterRow7.BoundItems.Add(this.dataGridColumnFooterItem5);
     this.dataGridFooterRow7.BoundItems.Add(this.dataGridColumnFooterItem7);
     this.dataGridFooterRow7.BoundItems.Add(this.dataGridColumnFooterItem9);
     //
     // dataGridColumnFooterItem1
     //
     this.dataGridColumnFooterItem1.CalcValueFunction = countCalculator1;
     //
     // dataGridColumnFooterItem5
     //
     this.dataGridColumnFooterItem5.CalcValueFunction = sumCalculator1;
     //
     // dataGridColumnFooterItem7
     //
     this.dataGridColumnFooterItem7.CalcValueFunction = sumCalculator2;
     //
     // dataGridColumnFooterItem9
     //
     this.dataGridColumnFooterItem9.CalcValueFunction = countCalculator2;
     //
     // dataGridFooterRow8
     //
     this.dataGridFooterRow8.BoundItems.Add(this.dataGridColumnFooterItem2);
     this.dataGridFooterRow8.BoundItems.Add(this.dataGridColumnFooterItem4);
     this.dataGridFooterRow8.BoundItems.Add(this.dataGridColumnFooterItem6);
     this.dataGridFooterRow8.BoundItems.Add(this.dataGridColumnFooterItem8);
     this.dataGridFooterRow8.BoundItems.Add(this.dataGridColumnFooterItem10);
     //
     // dataGridColumnFooterItem6
     //
     this.dataGridColumnFooterItem6.FormatString = "##,#.00";
     this.dataGridColumnFooterItem6.HorzAlign    = System.Windows.Forms.HorizontalAlignment.Center;
     this.dataGridColumnFooterItem6.Padding      = new System.Windows.Forms.Padding(3, 4, 3, 6);
     //
     // tabPage1
     //
     this.tabPage1.AutoScroll = true;
     this.tabPage1.Controls.Add(this.dataGridEh1);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size     = new System.Drawing.Size(822, 323);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Demo";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // dataGridEh1
     //
     this.dataGridEh1.DataSource = this.order_DetailsBindingSource;
     this.dataGridEh1.Dock       = System.Windows.Forms.DockStyle.Fill;
     //
     //
     //
     this.dataGridEh1.Footer.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.dataGridEh1.Footer.Rows.AddRange(new EhLib.WinForms.DataGridFooterRow[] {
         this.dataGridFooterRow7,
         this.dataGridFooterRow8
     });
     this.dataGridEh1.Footer.RowStepCalculation += new System.EventHandler <EhLib.WinForms.DataGridFooterCalculationEventArgs>(this.dataGridEh1_Footer_RowStepCalculation);
     //
     //
     //
     this.dataGridEh1.HorzScrollBar.ExtraBar.Visible = true;
     this.dataGridEh1.Location = new System.Drawing.Point(3, 3);
     this.dataGridEh1.Name     = "dataGridEh1";
     this.dataGridEh1.Size     = new System.Drawing.Size(816, 317);
     this.dataGridEh1.StaticColumns.AddRange(new EhLib.WinForms.PropertyAxisBar[] {
         this.dataGridTextColumn1,
         this.dataGridTextColumn2,
         this.columnUnitPrice,
         this.columnQuantity,
         this.dataGridTextColumn5
     });
     this.dataGridEh1.TabIndex = 0;
     //
     //
     //
     this.dataGridEh1.Title.Filter.Active = true;
     this.dataGridEh1.SelectionChanged   += new System.EventHandler <EhLib.WinForms.DataGridSelectionChangeOperationEventArgs>(this.dataGridEh1_SelectionChanged);
     this.dataGridEh1.Paint += new System.EventHandler <EhLib.WinForms.ControlPaintEventArgs>(this.dataGridEh1_Paint);
     //
     // order_DetailsBindingSource
     //
     this.order_DetailsBindingSource.DataMember = "Order Details";
     this.order_DetailsBindingSource.DataSource = this.northwindDataSet;
     //
     // northwindDataSet
     //
     this.northwindDataSet.DataSetName             = "NorthwindDataSet";
     this.northwindDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // dataGridTextColumn1
     //
     this.dataGridTextColumn1.DataPropertyName = "OrderID";
     //
     //
     //
     this.dataGridTextColumn1.Footer.BoundItems.Add(this.dataGridColumnFooterItem1);
     this.dataGridTextColumn1.Footer.BoundItems.Add(this.dataGridColumnFooterItem2);
     this.dataGridTextColumn1.Name = "dataGridTextColumn1";
     //
     //
     //
     this.dataGridTextColumn1.Title.Text = "OrderID";
     //
     // dataGridTextColumn2
     //
     this.dataGridTextColumn2.DataPropertyName = "ProductID";
     //
     //
     //
     this.dataGridTextColumn2.Footer.BoundItems.Add(this.dataGridColumnFooterItem3);
     this.dataGridTextColumn2.Footer.BoundItems.Add(this.dataGridColumnFooterItem4);
     this.dataGridTextColumn2.Name = "dataGridTextColumn2";
     //
     //
     //
     this.dataGridTextColumn2.Title.Text = "ProductID";
     //
     // columnUnitPrice
     //
     this.columnUnitPrice.DataPropertyName = "UnitPrice";
     //
     //
     //
     this.columnUnitPrice.Footer.BoundItems.Add(this.dataGridColumnFooterItem5);
     this.columnUnitPrice.Footer.BoundItems.Add(this.dataGridColumnFooterItem6);
     this.columnUnitPrice.Footer.CellPaint           += new System.EventHandler <EhLib.WinForms.DataGridFooterCellPaintEventArgs>(this.columnUnitPrice_Footer_CellPaint);
     this.columnUnitPrice.Footer.InitCalculation     += new System.EventHandler <EhLib.WinForms.DataGridFooterCalculationEventArgs>(this.columnUnitPrice_Footer_InitCalculation);
     this.columnUnitPrice.Footer.RowStepCalculation  += new System.EventHandler <EhLib.WinForms.DataGridFooterCalculationEventArgs>(this.columnUnitPrice_Footer_RowStepCalculation);
     this.columnUnitPrice.Footer.FinalizeCalculation += new System.EventHandler <EhLib.WinForms.DataGridFooterCalculationEventArgs>(this.columnUnitPrice_Footer_FinalizeCalculation);
     this.columnUnitPrice.Name = "columnUnitPrice";
     //
     //
     //
     this.columnUnitPrice.Title.Text = "UnitPrice";
     //
     // columnQuantity
     //
     this.columnQuantity.DataPropertyName = "Quantity";
     //
     //
     //
     this.columnQuantity.Footer.BoundItems.Add(this.dataGridColumnFooterItem7);
     this.columnQuantity.Footer.BoundItems.Add(this.dataGridColumnFooterItem8);
     this.columnQuantity.Footer.CellPaint += new System.EventHandler <EhLib.WinForms.DataGridFooterCellPaintEventArgs>(this.columnQuantity_Footer_CellPaint);
     this.columnQuantity.Name              = "columnQuantity";
     //
     //
     //
     this.columnQuantity.Title.Text = "Quantity";
     this.columnQuantity.Width      = 60;
     //
     // dataGridTextColumn5
     //
     this.dataGridTextColumn5.DataPropertyName = "Discount";
     //
     //
     //
     this.dataGridTextColumn5.Footer.BoundItems.Add(this.dataGridColumnFooterItem9);
     this.dataGridTextColumn5.Footer.BoundItems.Add(this.dataGridColumnFooterItem10);
     this.dataGridTextColumn5.Footer.RowStepCalculation += new System.EventHandler <EhLib.WinForms.DataGridFooterCalculationEventArgs>(this.dataGridTextColumn5_Footer_RowStepCalculation);
     this.dataGridTextColumn5.Footer.CellFormatValue    += new System.EventHandler <EhLib.WinForms.DataGridFooterCellFormatValueEventArgs>(this.dataGridTextColumn5_Footer_CellFormatValue);
     this.dataGridTextColumn5.Name = "dataGridTextColumn5";
     //
     //
     //
     this.dataGridTextColumn5.Title.Text = "Discount";
     this.dataGridTextColumn5.Width      = 188;
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location      = new System.Drawing.Point(0, 36);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(830, 349);
     this.tabControl1.TabIndex      = 9;
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.richTextBox1);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size     = new System.Drawing.Size(822, 323);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "Description";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // richTextBox1
     //
     this.richTextBox1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.richTextBox1.Location = new System.Drawing.Point(3, 3);
     this.richTextBox1.Name     = "richTextBox1";
     this.richTextBox1.Size     = new System.Drawing.Size(816, 317);
     this.richTextBox1.TabIndex = 1;
     this.richTextBox1.Text     = "";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.Location = new System.Drawing.Point(6, 5);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(368, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "DataGridEh Custom Footer Calculation";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(830, 36);
     this.panel1.TabIndex = 8;
     //
     // order_DetailsTableAdapter
     //
     this.order_DetailsTableAdapter.ClearBeforeFill = true;
     //
     // tableAdapterManager
     //
     this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
     this.tableAdapterManager.CategoriesTableAdapter    = null;
     this.tableAdapterManager.CustomersTableAdapter     = null;
     this.tableAdapterManager.EmployeesTableAdapter     = null;
     this.tableAdapterManager.Order_DetailsTableAdapter = this.order_DetailsTableAdapter;
     this.tableAdapterManager.OrdersTableAdapter        = null;
     this.tableAdapterManager.ProductsTableAdapter      = null;
     this.tableAdapterManager.ShippersTableAdapter      = null;
     this.tableAdapterManager.UpdateOrder = MainDemo.NorthwindDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     //
     // FrameSolDataGridFooterCalculation
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.Controls.Add(this.tabControl1);
     this.Controls.Add(this.panel1);
     this.Name = "FrameSolDataGridFooterCalculation";
     this.Size = new System.Drawing.Size(830, 385);
     this.tabPage1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridEh1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.order_DetailsBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.northwindDataSet)).EndInit();
     this.tabControl1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
コード例 #2
0
 /// <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();
     EhLib.WinForms.SumCalculator        sumCalculator1        = new EhLib.WinForms.SumCalculator();
     EhLib.WinForms.StaticTextCalculator staticTextCalculator1 = new EhLib.WinForms.StaticTextCalculator();
     this.panel1 = new System.Windows.Forms.Panel();
     this.label1 = new System.Windows.Forms.Label();
     this.ordersBindingSource             = new System.Windows.Forms.BindingSource(this.components);
     this.northwindDataSet                = new MainDemo.NorthwindDataSet();
     this.ordersTableAdapter              = new MainDemo.NorthwindDataSetTableAdapters.OrdersTableAdapter();
     this.tableAdapterManager             = new MainDemo.NorthwindDataSetTableAdapters.TableAdapterManager();
     this.dataGridEh1                     = new EhLib.WinForms.DataGridEh();
     this.dataGridGroupDescription1       = new EhLib.WinForms.DataGridGroupDescription();
     this.dataGridEh1ShipCountryColumn    = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridGroupDescription2       = new EhLib.WinForms.DataGridGroupDescription();
     this.dataGridEh1ShipCityColumn       = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridFooterRow1              = new EhLib.WinForms.DataGridFooterRow();
     this.dataGridColumnFooterItem1       = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridColumnFooterItem2       = new EhLib.WinForms.DataGridColumnFooterItem();
     this.dataGridEh1OrderIDColumn        = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1CustomerIDColumn     = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1EmployeeIDColumn     = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1OrderDateColumn      = new EhLib.WinForms.DataGridDateTimeColumn();
     this.dataGridEh1ShipViaColumn        = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1FreightColumn        = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1ShipNameColumn       = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1ShipRegionColumn     = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridEh1ShipPostalCodeColumn = new EhLib.WinForms.DataGridTextColumn();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ordersBindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.northwindDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridEh1)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(753, 36);
     this.panel1.TabIndex = 2;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.Location = new System.Drawing.Point(32, 6);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(144, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Data Grouping";
     //
     // ordersBindingSource
     //
     this.ordersBindingSource.DataMember = "Orders";
     this.ordersBindingSource.DataSource = this.northwindDataSet;
     //
     // northwindDataSet
     //
     this.northwindDataSet.DataSetName             = "NorthwindDataSet";
     this.northwindDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // ordersTableAdapter
     //
     this.ordersTableAdapter.ClearBeforeFill = true;
     //
     // tableAdapterManager
     //
     this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
     this.tableAdapterManager.CategoriesTableAdapter    = null;
     this.tableAdapterManager.CustomersTableAdapter     = null;
     this.tableAdapterManager.EmployeesTableAdapter     = null;
     this.tableAdapterManager.Order_DetailsTableAdapter = null;
     this.tableAdapterManager.OrdersTableAdapter        = this.ordersTableAdapter;
     this.tableAdapterManager.ProductsTableAdapter      = null;
     this.tableAdapterManager.ShippersTableAdapter      = null;
     this.tableAdapterManager.UpdateOrder = MainDemo.NorthwindDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
     //
     // dataGridEh1
     //
     //
     // dataGridEh1.DataGrouping
     //
     this.dataGridEh1.DataGrouping.BackColor = System.Drawing.Color.NavajoWhite;
     this.dataGridEh1.DataGrouping.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.dataGridEh1.DataGrouping.ForeColor = System.Drawing.Color.MidnightBlue;
     this.dataGridEh1.DataGrouping.GroupDescriptions.Add(this.dataGridGroupDescription1);
     this.dataGridEh1.DataGrouping.GroupDescriptions.Add(this.dataGridGroupDescription2);
     //
     //
     //
     this.dataGridEh1.DataGrouping.GroupPanel.Visible        = true;
     this.dataGridEh1.DataGrouping.Padding                   = new System.Windows.Forms.Padding(6, 4, 0, 10);
     this.dataGridEh1.DataGrouping.GroupDescriptionsChanged += new System.EventHandler(this.dataGridEh1_DataGrouping_GroupDescriptionsChanged);
     this.dataGridEh1.DataMember = "";
     this.dataGridEh1.DataSource = this.ordersBindingSource;
     this.dataGridEh1.Dock       = System.Windows.Forms.DockStyle.Fill;
     //
     // dataGridEh1.Footer
     //
     this.dataGridEh1.Footer.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.dataGridEh1.Footer.Rows.AddRange(new EhLib.WinForms.DataGridFooterRow[] {
         this.dataGridFooterRow1
     });
     this.dataGridEh1.Location = new System.Drawing.Point(0, 36);
     this.dataGridEh1.Name     = "dataGridEh1";
     this.dataGridEh1.Size     = new System.Drawing.Size(753, 407);
     this.dataGridEh1.StaticColumns.AddRange(new EhLib.WinForms.PropertyAxisBar[] {
         this.dataGridEh1OrderIDColumn,
         this.dataGridEh1ShipCountryColumn,
         this.dataGridEh1ShipCityColumn,
         this.dataGridEh1CustomerIDColumn,
         this.dataGridEh1EmployeeIDColumn,
         this.dataGridEh1OrderDateColumn,
         this.dataGridEh1ShipViaColumn,
         this.dataGridEh1FreightColumn,
         this.dataGridEh1ShipNameColumn,
         this.dataGridEh1ShipRegionColumn,
         this.dataGridEh1ShipPostalCodeColumn
     });
     this.dataGridEh1.TabIndex = 3;
     //
     // dataGridEh1.Title
     //
     this.dataGridEh1.Title.Filter.Active = true;
     this.dataGridEh1.Title.HeightOptions.ContentHeight = 2;
     //
     // dataGridGroupDescription1
     //
     this.dataGridGroupDescription1.Column = this.dataGridEh1ShipCountryColumn;
     //
     // dataGridEh1ShipCountryColumn
     //
     this.dataGridEh1ShipCountryColumn.DataPropertyName = "ShipCountry";
     this.dataGridEh1ShipCountryColumn.Name             = "dataGridEh1ShipCountryColumn";
     //
     // dataGridEh1ShipCountryColumn.Title
     //
     this.dataGridEh1ShipCountryColumn.Title.Text = "ShipCountry";
     this.dataGridEh1ShipCountryColumn.Visible    = false;
     this.dataGridEh1ShipCountryColumn.Width      = 104;
     //
     // dataGridGroupDescription2
     //
     this.dataGridGroupDescription2.Column = this.dataGridEh1ShipCityColumn;
     //
     // dataGridEh1ShipCityColumn
     //
     this.dataGridEh1ShipCityColumn.DataPropertyName = "ShipCity";
     this.dataGridEh1ShipCityColumn.Name             = "dataGridEh1ShipCityColumn";
     //
     // dataGridEh1ShipCityColumn.Title
     //
     this.dataGridEh1ShipCityColumn.Title.Text = "ShipCity";
     this.dataGridEh1ShipCityColumn.Visible    = false;
     this.dataGridEh1ShipCityColumn.Width      = 115;
     //
     // dataGridFooterRow1
     //
     this.dataGridFooterRow1.BoundItems.Add(this.dataGridColumnFooterItem1);
     this.dataGridFooterRow1.BoundItems.Add(this.dataGridColumnFooterItem2);
     //
     // dataGridColumnFooterItem1
     //
     this.dataGridColumnFooterItem1.CalcValueFunction = sumCalculator1;
     this.dataGridColumnFooterItem1.Font         = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.dataGridColumnFooterItem1.FormatString = "#,##0.00";
     //
     // dataGridColumnFooterItem2
     //
     staticTextCalculator1.Text = "Total";
     this.dataGridColumnFooterItem2.CalcValueFunction = staticTextCalculator1;
     this.dataGridColumnFooterItem2.HorzAlign         = System.Windows.Forms.HorizontalAlignment.Left;
     this.dataGridColumnFooterItem2.CellFormatValue  += new System.EventHandler <EhLib.WinForms.DataGridFooterCellFormatValueEventArgs>(this.dataGridColumnFooterItem2_CellFormatValue);
     //
     // dataGridEh1OrderIDColumn
     //
     this.dataGridEh1OrderIDColumn.DataPropertyName = "OrderID";
     //
     //
     //
     this.dataGridEh1OrderIDColumn.Footer.BoundItems.Add(this.dataGridColumnFooterItem2);
     this.dataGridEh1OrderIDColumn.Name = "dataGridEh1OrderIDColumn";
     //
     // dataGridEh1OrderIDColumn.Title
     //
     this.dataGridEh1OrderIDColumn.Title.Text = "OrderID";
     this.dataGridEh1OrderIDColumn.Width      = 122;
     //
     // dataGridEh1CustomerIDColumn
     //
     this.dataGridEh1CustomerIDColumn.DataPropertyName = "CustomerID";
     this.dataGridEh1CustomerIDColumn.Name             = "dataGridEh1CustomerIDColumn";
     //
     // dataGridEh1CustomerIDColumn.Title
     //
     this.dataGridEh1CustomerIDColumn.Title.Text = "CustomerID";
     //
     // dataGridEh1EmployeeIDColumn
     //
     this.dataGridEh1EmployeeIDColumn.DataPropertyName = "EmployeeID";
     this.dataGridEh1EmployeeIDColumn.Name             = "dataGridEh1EmployeeIDColumn";
     //
     // dataGridEh1EmployeeIDColumn.Title
     //
     this.dataGridEh1EmployeeIDColumn.Title.Text = "EmployeeID";
     //
     // dataGridEh1OrderDateColumn
     //
     this.dataGridEh1OrderDateColumn.DataPropertyName = "OrderDate";
     this.dataGridEh1OrderDateColumn.Name             = "dataGridEh1OrderDateColumn";
     //
     // dataGridEh1OrderDateColumn.Title
     //
     this.dataGridEh1OrderDateColumn.Title.Text = "OrderDate";
     this.dataGridEh1OrderDateColumn.Width      = 100;
     //
     // dataGridEh1ShipViaColumn
     //
     this.dataGridEh1ShipViaColumn.DataPropertyName = "ShipVia";
     this.dataGridEh1ShipViaColumn.Name             = "dataGridEh1ShipViaColumn";
     //
     // dataGridEh1ShipViaColumn.Title
     //
     this.dataGridEh1ShipViaColumn.Title.Text = "ShipVia";
     //
     // dataGridEh1FreightColumn
     //
     this.dataGridEh1FreightColumn.DataPropertyName = "Freight";
     //
     //
     //
     this.dataGridEh1FreightColumn.Footer.BoundItems.Add(this.dataGridColumnFooterItem1);
     this.dataGridEh1FreightColumn.FormatString = "#,##0.00";
     this.dataGridEh1FreightColumn.Name         = "dataGridEh1FreightColumn";
     //
     // dataGridEh1FreightColumn.Title
     //
     this.dataGridEh1FreightColumn.Title.Text = "Freight";
     this.dataGridEh1FreightColumn.Width      = 77;
     //
     // dataGridEh1ShipNameColumn
     //
     this.dataGridEh1ShipNameColumn.DataPropertyName = "ShipName";
     this.dataGridEh1ShipNameColumn.Name             = "dataGridEh1ShipNameColumn";
     //
     // dataGridEh1ShipNameColumn.Title
     //
     this.dataGridEh1ShipNameColumn.Title.Text = "ShipName";
     this.dataGridEh1ShipNameColumn.Width      = 219;
     //
     // dataGridEh1ShipRegionColumn
     //
     this.dataGridEh1ShipRegionColumn.DataPropertyName = "ShipRegion";
     this.dataGridEh1ShipRegionColumn.Name             = "dataGridEh1ShipRegionColumn";
     //
     // dataGridEh1ShipRegionColumn.Title
     //
     this.dataGridEh1ShipRegionColumn.Title.Text = "ShipRegion";
     //
     // dataGridEh1ShipPostalCodeColumn
     //
     this.dataGridEh1ShipPostalCodeColumn.DataPropertyName = "ShipPostalCode";
     this.dataGridEh1ShipPostalCodeColumn.Name             = "dataGridEh1ShipPostalCodeColumn";
     //
     // dataGridEh1ShipPostalCodeColumn.Title
     //
     this.dataGridEh1ShipPostalCodeColumn.Title.Text = "ShipPostalCode";
     //
     // FrameDataGrouping
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.Controls.Add(this.dataGridEh1);
     this.Controls.Add(this.panel1);
     this.Name  = "FrameDataGrouping";
     this.Size  = new System.Drawing.Size(753, 443);
     this.Load += new System.EventHandler(this.FrameDataGrouping_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ordersBindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.northwindDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridEh1)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #3
0
 /// <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();
     EhLib.WinForms.SumCalculator sumCalculator1 = new EhLib.WinForms.SumCalculator();
     this.dataGridFooterRow1        = new EhLib.WinForms.DataGridFooterRow();
     this.dataGridColumnFooterItem6 = new EhLib.WinForms.DataGridColumnFooterItem();
     this.panel1                           = new System.Windows.Forms.Panel();
     this.pictureBox1                      = new System.Windows.Forms.PictureBox();
     this.label1                           = new System.Windows.Forms.Label();
     this.colOrdedId                       = new EhLib.WinForms.DataGridTextColumn();
     this.colEmpId                         = new EhLib.WinForms.DataGridTextColumn();
     this.colComboBoxEmpName               = new EhLib.WinForms.DataGridComboBoxColumn();
     this.bsEmployees                      = new System.Windows.Forms.BindingSource(this.components);
     this.northwindDataSet                 = new MainDemo.NorthwindDataSet();
     this.colCustId                        = new EhLib.WinForms.DataGridTextColumn();
     this.dataGridComboBoxColumn1          = new EhLib.WinForms.DataGridComboBoxColumn();
     this.bsCustomer                       = new System.Windows.Forms.BindingSource(this.components);
     this.colShipFee                       = new EhLib.WinForms.DataGridTextColumn();
     this.colOrdDate                       = new EhLib.WinForms.DataGridDateTimeColumn();
     this.colShipDate                      = new EhLib.WinForms.DataGridDateTimeColumn();
     this.colShipperId                     = new EhLib.WinForms.DataGridTextColumn();
     this.colShipName                      = new EhLib.WinForms.DataGridTextColumn();
     this.orderIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGrid1                        = new EhLib.WinForms.DataGridEh();
     this.superTitleEmployee               = new EhLib.WinForms.DataGridSuperTitle();
     this.dataGridSuperTitle1              = new EhLib.WinForms.DataGridSuperTitle();
     this.dataGridSuperTitle2              = new EhLib.WinForms.DataGridSuperTitle();
     this.bsMain                           = new System.Windows.Forms.BindingSource(this.components);
     this.ordersTableAdapter               = new MainDemo.NorthwindDataSetTableAdapters.OrdersTableAdapter();
     this.employeesTableAdapter            = new MainDemo.NorthwindDataSetTableAdapters.EmployeesTableAdapter();
     this.customersTableAdapter1           = new MainDemo.NorthwindDataSetTableAdapters.CustomersTableAdapter();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsEmployees)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.northwindDataSet)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsCustomer)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit();
     this.SuspendLayout();
     //
     // dataGridFooterRow1
     //
     this.dataGridFooterRow1.BoundItems.Add(this.dataGridColumnFooterItem6);
     //
     // dataGridColumnFooterItem6
     //
     this.dataGridColumnFooterItem6.CalcValueFunction = sumCalculator1;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.pictureBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(600, 36);
     this.panel1.TabIndex = 0;
     //
     // pictureBox1
     //
     this.pictureBox1.Location = new System.Drawing.Point(197, 0);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(100, 50);
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop  = false;
     this.pictureBox1.Paint   += new System.Windows.Forms.PaintEventHandler(this.pictureBox1_Paint);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.Location = new System.Drawing.Point(32, 6);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Main Grid";
     //
     // colOrdedId
     //
     this.colOrdedId.DataPropertyName = "OrderID";
     this.colOrdedId.FillWeight       = 57F;
     this.colOrdedId.Name             = "colOrdedId";
     //
     // colOrdedId.Title
     //
     this.colOrdedId.Title.Text = "Order ID";
     this.colOrdedId.Width      = 52;
     //
     // colEmpId
     //
     this.colEmpId.DataPropertyName = "EmployeeID";
     this.colEmpId.FillWeight       = 55F;
     this.colEmpId.Name             = "colEmpId";
     //
     // colEmpId.Title
     //
     this.colEmpId.Title.Text = "ID";
     this.colEmpId.Width      = 50;
     //
     // colComboBoxEmpName
     //
     this.colComboBoxEmpName.DataPropertyName = "EmployeeID";
     this.colComboBoxEmpName.DataSource       = this.bsEmployees;
     this.colComboBoxEmpName.DisplayMember    = "Name";
     //
     // colComboBoxEmpName.EditButton
     //
     this.colComboBoxEmpName.EditButton.StyleKind = EhLib.WinForms.InEditButtonStyleKind.AltDropDown;
     this.colComboBoxEmpName.FillWeight           = 103F;
     this.colComboBoxEmpName.Name = "colComboBoxEmpName";
     //
     // colComboBoxEmpName.Title
     //
     this.colComboBoxEmpName.Title.Text  = "Name";
     this.colComboBoxEmpName.ValueMember = "EmployeeID";
     this.colComboBoxEmpName.Width       = 94;
     //
     // bsEmployees
     //
     this.bsEmployees.DataMember = "Employees";
     this.bsEmployees.DataSource = this.northwindDataSet;
     this.bsEmployees.Sort       = "Name";
     //
     // northwindDataSet
     //
     this.northwindDataSet.DataSetName             = "NorthwindDataSet";
     this.northwindDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     //
     // colCustId
     //
     this.colCustId.DataPropertyName = "CustomerID";
     this.colCustId.FillWeight       = 55F;
     this.colCustId.Name             = "colCustId";
     //
     // colCustId.Title
     //
     this.colCustId.Title.Text = "ID";
     this.colCustId.Width      = 50;
     //
     // dataGridComboBoxColumn1
     //
     this.dataGridComboBoxColumn1.DataPropertyName = "CustomerID";
     this.dataGridComboBoxColumn1.DataSource       = this.bsCustomer;
     this.dataGridComboBoxColumn1.DisplayMember    = "CompanyName";
     //
     // dataGridComboBoxColumn1.EditButton
     //
     this.dataGridComboBoxColumn1.EditButton.StyleKind = EhLib.WinForms.InEditButtonStyleKind.AltDropDown;
     this.dataGridComboBoxColumn1.FillWeight           = 81F;
     this.dataGridComboBoxColumn1.Name = "dataGridComboBoxColumn1";
     //
     // dataGridComboBoxColumn1.Title
     //
     this.dataGridComboBoxColumn1.Title.Text  = "Name";
     this.dataGridComboBoxColumn1.ValueMember = "CustomerID";
     this.dataGridComboBoxColumn1.Width       = 117;
     //
     // bsCustomer
     //
     this.bsCustomer.DataMember = "Customers";
     this.bsCustomer.DataSource = this.northwindDataSet;
     //
     // colShipFee
     //
     this.colShipFee.DataPropertyName = "Freight";
     this.colShipFee.FillWeight       = 108F;
     //
     //
     //
     this.colShipFee.Footer.BoundItems.Add(this.dataGridColumnFooterItem6);
     this.colShipFee.Name = "colShipFee";
     //
     // colShipFee.Title
     //
     this.colShipFee.Title.Text = "Freight";
     this.colShipFee.Width      = 99;
     //
     // colOrdDate
     //
     this.colOrdDate.DataPropertyName = "RequiredDate";
     this.colOrdDate.FillWeight       = 60F;
     this.colOrdDate.Name             = "colOrdDate";
     //
     // colOrdDate.Title
     //
     this.colOrdDate.Title.Text = "Required";
     this.colOrdDate.Width      = 124;
     //
     // colShipDate
     //
     this.colShipDate.DataPropertyName = "ShippedDate";
     this.colShipDate.FillWeight       = 56F;
     this.colShipDate.Name             = "colShipDate";
     //
     // colShipDate.Title
     //
     this.colShipDate.Title.Text = "Shipped";
     this.colShipDate.Width      = 114;
     //
     // colShipperId
     //
     this.colShipperId.DataPropertyName = "ShipVia";
     this.colShipperId.FillWeight       = 56F;
     this.colShipperId.Name             = "colShipperId";
     //
     // colShipperId.Title
     //
     this.colShipperId.Title.Text = "Shipper ID";
     this.colShipperId.Width      = 51;
     //
     // colShipName
     //
     this.colShipName.DataPropertyName = "ShipName";
     this.colShipName.FillWeight       = 56F;
     this.colShipName.Name             = "colShipName";
     //
     // colShipName.Title
     //
     this.colShipName.Title.Text = "Ship Name";
     this.colShipName.Width      = 150;
     //
     // orderIDDataGridViewTextBoxColumn
     //
     this.orderIDDataGridViewTextBoxColumn.DataPropertyName = "Order ID";
     this.orderIDDataGridViewTextBoxColumn.HeaderText       = "Order ID";
     this.orderIDDataGridViewTextBoxColumn.Name             = "orderIDDataGridViewTextBoxColumn";
     //
     // dataGrid1
     //
     this.dataGrid1.DataMember = "Orders";
     this.dataGrid1.DataSource = this.northwindDataSet;
     this.dataGrid1.Dock       = System.Windows.Forms.DockStyle.Fill;
     //
     // dataGrid1.Footer
     //
     this.dataGrid1.Footer.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.dataGrid1.Footer.Rows.AddRange(new EhLib.WinForms.DataGridFooterRow[] {
         this.dataGridFooterRow1
     });
     //
     // dataGrid1.HorzScrollBar
     //
     this.dataGrid1.HorzScrollBar.ExtraBar.Visible = true;
     this.dataGrid1.HorzScrollBar.Height           = 24;
     this.dataGrid1.Location = new System.Drawing.Point(0, 36);
     this.dataGrid1.Name     = "dataGrid1";
     this.dataGrid1.Size     = new System.Drawing.Size(600, 472);
     this.dataGrid1.StaticColumns.AddRange(new EhLib.WinForms.PropertyAxisBar[] {
         this.colOrdedId,
         this.colEmpId,
         this.colComboBoxEmpName,
         this.colCustId,
         this.dataGridComboBoxColumn1,
         this.colShipFee,
         this.colOrdDate,
         this.colShipDate,
         this.colShipperId,
         this.colShipName
     });
     this.dataGrid1.TabIndex = 1;
     this.dataGrid1.Text     = "dataGrid1";
     //
     // dataGrid1.Title
     //
     this.dataGrid1.Title.Filter.Active            = true;
     this.dataGrid1.Title.HeightOptions.AutoExpand = true;
     this.dataGrid1.Title.HorzAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     //
     //
     this.dataGrid1.Title.MultiTitle.Active = true;
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.colOrdedId);
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.superTitleEmployee);
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.dataGridSuperTitle1);
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.colShipFee);
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.dataGridSuperTitle2);
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.colShipperId);
     this.dataGrid1.Title.MultiTitle.Subtitles.Add(this.colShipName);
     this.dataGrid1.Title.SortMarking.MultiSortMarkable = true;
     this.dataGrid1.Title.SortMarking.SortMarkable      = true;
     this.dataGrid1.Click += new System.EventHandler(this.dataGrid1_Click);
     //
     // superTitleEmployee
     //
     //
     //
     //
     this.superTitleEmployee.ImageBox.HorzAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.superTitleEmployee.ImageBox.Image     = global::MainDemo.Properties.Resources.man_with_tai;
     this.superTitleEmployee.ImageBox.Padding   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.superTitleEmployee.Name = "superTitleEmployee";
     this.superTitleEmployee.Subtitles.Add(this.colEmpId);
     this.superTitleEmployee.Subtitles.Add(this.colComboBoxEmpName);
     this.superTitleEmployee.Text = "Employee";
     //
     // dataGridSuperTitle1
     //
     //
     //
     //
     this.dataGridSuperTitle1.ImageBox.HorzAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.dataGridSuperTitle1.ImageBox.Image     = global::MainDemo.Properties.Resources.icons_user_16x16;
     this.dataGridSuperTitle1.ImageBox.Padding   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.dataGridSuperTitle1.Name = "dataGridSuperTitle1";
     this.dataGridSuperTitle1.Subtitles.Add(this.colCustId);
     this.dataGridSuperTitle1.Subtitles.Add(this.dataGridComboBoxColumn1);
     this.dataGridSuperTitle1.Text = "Customer";
     //
     // dataGridSuperTitle2
     //
     //
     //
     //
     this.dataGridSuperTitle2.ImageBox.HorzAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.dataGridSuperTitle2.ImageBox.Image     = global::MainDemo.Properties.Resources.Calendar_16x16;
     this.dataGridSuperTitle2.ImageBox.Padding   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.dataGridSuperTitle2.Name = "dataGridSuperTitle2";
     this.dataGridSuperTitle2.Subtitles.Add(this.colOrdDate);
     this.dataGridSuperTitle2.Subtitles.Add(this.colShipDate);
     this.dataGridSuperTitle2.Text = "Dates";
     //
     // bsMain
     //
     this.bsMain.DataMember = "Orders";
     this.bsMain.DataSource = this.northwindDataSet;
     //
     // ordersTableAdapter
     //
     this.ordersTableAdapter.ClearBeforeFill = true;
     //
     // employeesTableAdapter
     //
     this.employeesTableAdapter.ClearBeforeFill = true;
     //
     // customersTableAdapter1
     //
     this.customersTableAdapter1.ClearBeforeFill = true;
     //
     // FrameMainGrid
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.dataGrid1);
     this.Controls.Add(this.panel1);
     this.Name = "FrameMainGrid";
     this.Size = new System.Drawing.Size(600, 508);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsEmployees)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.northwindDataSet)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsCustomer)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit();
     this.ResumeLayout(false);
 }