Fix: No longer add additional columns to employee datagrid view.
This commit is contained in:
parent
d947c7b761
commit
cff27f9c7b
40
QueueSys/frmEmployeeView.Designer.cs
generated
40
QueueSys/frmEmployeeView.Designer.cs
generated
@ -43,10 +43,10 @@
|
||||
this.exitAltF4ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tbEmployeeName = new System.Windows.Forms.TextBox();
|
||||
this.dgvEmployeeView = new System.Windows.Forms.DataGridView();
|
||||
this.CustomerID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.CustomerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
|
||||
this.saveFileDialogReport = new System.Windows.Forms.SaveFileDialog();
|
||||
this.CustomerID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.CustomerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvEmployeeView)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
|
||||
@ -129,7 +129,7 @@
|
||||
this.fileToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(882, 33);
|
||||
this.menuStrip1.Size = new System.Drawing.Size(882, 36);
|
||||
this.menuStrip1.TabIndex = 5;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
@ -140,20 +140,20 @@
|
||||
this.optionsToolStripMenuItem,
|
||||
this.exitAltF4ToolStripMenuItem});
|
||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(54, 29);
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(54, 32);
|
||||
this.fileToolStripMenuItem.Text = "&File";
|
||||
//
|
||||
// generateReportToolStripMenuItem
|
||||
//
|
||||
this.generateReportToolStripMenuItem.Name = "generateReportToolStripMenuItem";
|
||||
this.generateReportToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
|
||||
this.generateReportToolStripMenuItem.Size = new System.Drawing.Size(242, 34);
|
||||
this.generateReportToolStripMenuItem.Text = "&Generate Report";
|
||||
this.generateReportToolStripMenuItem.Click += new System.EventHandler(this.generateReportToolStripMenuItem_Click);
|
||||
//
|
||||
// optionsToolStripMenuItem
|
||||
//
|
||||
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
|
||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(242, 34);
|
||||
this.optionsToolStripMenuItem.Text = "Options";
|
||||
this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
|
||||
//
|
||||
@ -161,7 +161,7 @@
|
||||
//
|
||||
this.exitAltF4ToolStripMenuItem.Name = "exitAltF4ToolStripMenuItem";
|
||||
this.exitAltF4ToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
|
||||
this.exitAltF4ToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
|
||||
this.exitAltF4ToolStripMenuItem.Size = new System.Drawing.Size(242, 34);
|
||||
this.exitAltF4ToolStripMenuItem.Text = "E&xit";
|
||||
this.exitAltF4ToolStripMenuItem.Click += new System.EventHandler(this.exitAltF4ToolStripMenuItem_Click);
|
||||
//
|
||||
@ -190,6 +190,17 @@
|
||||
this.dgvEmployeeView.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEmployeeView_CellClick);
|
||||
this.dgvEmployeeView.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvEmployeeView_EditingControlShowing);
|
||||
//
|
||||
// errorProvider1
|
||||
//
|
||||
this.errorProvider1.ContainerControl = this;
|
||||
//
|
||||
// saveFileDialogReport
|
||||
//
|
||||
this.saveFileDialogReport.DefaultExt = "CSV";
|
||||
this.saveFileDialogReport.Filter = "CSV Files|*.csv";
|
||||
this.saveFileDialogReport.InitialDirectory = ".";
|
||||
this.saveFileDialogReport.Title = "Save Report";
|
||||
//
|
||||
// CustomerID
|
||||
//
|
||||
this.CustomerID.HeaderText = "CustomerID";
|
||||
@ -206,17 +217,6 @@
|
||||
this.CustomerName.ReadOnly = true;
|
||||
this.CustomerName.Width = 150;
|
||||
//
|
||||
// errorProvider1
|
||||
//
|
||||
this.errorProvider1.ContainerControl = this;
|
||||
//
|
||||
// saveFileDialogReport
|
||||
//
|
||||
this.saveFileDialogReport.DefaultExt = "CSV";
|
||||
this.saveFileDialogReport.Filter = "CSV Files|*.csv";
|
||||
this.saveFileDialogReport.InitialDirectory = ".";
|
||||
this.saveFileDialogReport.Title = "Save Report";
|
||||
//
|
||||
// frmEmployeeView
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
@ -264,10 +264,10 @@
|
||||
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;
|
||||
private System.Windows.Forms.ErrorProvider errorProvider1;
|
||||
private System.Windows.Forms.SaveFileDialog saveFileDialogReport;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn CustomerID;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn CustomerName;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -121,6 +121,13 @@ namespace QueueSys
|
||||
private void RefreshEmployeeView()
|
||||
{
|
||||
dgvEmployeeView.Rows.Clear();
|
||||
dgvEmployeeView.Columns.Clear();
|
||||
dgvEmployeeView.Columns.Add("CustomerID", "CustomerID");
|
||||
dgvEmployeeView.Columns.Add("CustomerName", "CustomerName");
|
||||
dgvEmployeeView.Columns[0].Width = 150;
|
||||
dgvEmployeeView.Columns[0].ReadOnly = true;
|
||||
dgvEmployeeView.Columns[1].Width = 150;
|
||||
dgvEmployeeView.Columns[1].ReadOnly = true;
|
||||
dgvEmployeeView.Refresh();
|
||||
|
||||
// Build the row.
|
||||
|
Loading…
Reference in New Issue
Block a user