From 247bc6d874562ea537a3feeb7120657f0830c497 Mon Sep 17 00:00:00 2001 From: kougyoku Date: Wed, 16 Oct 2019 15:09:37 -0700 Subject: [PATCH] Setup employee datagrid view. --- QueueSys/frmEmployeeView.Designer.cs | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/QueueSys/frmEmployeeView.Designer.cs b/QueueSys/frmEmployeeView.Designer.cs index 498df25..93587e2 100644 --- a/QueueSys/frmEmployeeView.Designer.cs +++ b/QueueSys/frmEmployeeView.Designer.cs @@ -41,8 +41,8 @@ this.exitAltF4ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tbEmployeeName = new System.Windows.Forms.TextBox(); this.dgvEmployeeView = new System.Windows.Forms.DataGridView(); - this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.CustomerID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.CustomerName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvEmployeeView)).BeginInit(); this.SuspendLayout(); @@ -168,8 +168,8 @@ this.dgvEmployeeView.AllowUserToAddRows = false; this.dgvEmployeeView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvEmployeeView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewTextBoxColumn1, - this.dataGridViewTextBoxColumn2}); + this.CustomerID, + this.CustomerName}); this.dgvEmployeeView.Location = new System.Drawing.Point(22, 181); this.dgvEmployeeView.Name = "dgvEmployeeView"; this.dgvEmployeeView.RowHeadersWidth = 62; @@ -178,18 +178,19 @@ this.dgvEmployeeView.Size = new System.Drawing.Size(843, 352); this.dgvEmployeeView.TabIndex = 7; this.dgvEmployeeView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEmployeeView_CellClick); + this.dgvEmployeeView.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvEmployeeView_EditingControlShowing); // - // dataGridViewTextBoxColumn1 + // CustomerID // - this.dataGridViewTextBoxColumn1.MinimumWidth = 8; - this.dataGridViewTextBoxColumn1.Name = "CustomerID"; - this.dataGridViewTextBoxColumn1.Width = 150; + this.CustomerID.MinimumWidth = 8; + this.CustomerID.Name = "CustomerID"; + this.CustomerID.Width = 150; // - // dataGridViewTextBoxColumn2 + // CustomerName // - this.dataGridViewTextBoxColumn2.MinimumWidth = 8; - this.dataGridViewTextBoxColumn2.Name = "CustomerName"; - this.dataGridViewTextBoxColumn2.Width = 150; + this.CustomerName.MinimumWidth = 8; + this.CustomerName.Name = "CustomerName"; + this.CustomerName.Width = 150; // // frmEmployeeView // @@ -236,6 +237,8 @@ private System.Windows.Forms.DataGridView dgvEmployeeView; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn CustomerID; + private System.Windows.Forms.DataGridViewTextBoxColumn CustomerName; } }