From f7c9d43a64778b44bbb317b61b3ff23b0a42a186 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Tue, 24 Oct 2023 14:02:14 +0100 Subject: [PATCH] Fixed column resizing on the Graph dialog. Signed-off-by: Konstantina Chremmou --- XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs b/XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs index b48ca2e97c..1d7b7c17ca 100644 --- a/XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs +++ b/XenAdmin/Dialogs/GraphDetailsDialog.Designer.cs @@ -96,9 +96,8 @@ private void InitializeComponent() // this.dataGridView.AllowUserToAddRows = false; this.dataGridView.AllowUserToDeleteRows = false; - this.dataGridView.AllowUserToResizeColumns = false; this.dataGridView.AllowUserToResizeRows = false; - this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells; + this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dataGridView.BackgroundColor = System.Drawing.SystemColors.Window; this.dataGridView.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.dataGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; @@ -237,6 +236,7 @@ private void InitializeComponent() // // ColumnDisplayOnGraph // + this.ColumnDisplayOnGraph.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.NullValue = false; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Window; @@ -250,14 +250,12 @@ private void InitializeComponent() // // ColumnName // - this.ColumnName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; resources.ApplyResources(this.ColumnName, "ColumnName"); this.ColumnName.Name = "ColumnName"; this.ColumnName.ReadOnly = true; // // Description // - this.Description.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; resources.ApplyResources(this.Description, "Description"); this.Description.Name = "Description"; this.Description.ReadOnly = true; @@ -271,6 +269,7 @@ private void InitializeComponent() // // ColumnEnabled // + this.ColumnEnabled.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; resources.ApplyResources(this.ColumnEnabled, "ColumnEnabled"); this.ColumnEnabled.Name = "ColumnEnabled"; this.ColumnEnabled.ReadOnly = true;