From e65d80edc2b8e0246237090d218881794471dc40 Mon Sep 17 00:00:00 2001 From: Aareschluchtje Date: Mon, 19 Oct 2015 16:04:53 +0200 Subject: [PATCH] Some more table stuff. --- .../ConActiveSessions.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ErgometerDoctorApplication/ConActiveSessions.cs b/ErgometerDoctorApplication/ConActiveSessions.cs index 9e29656..52a8552 100644 --- a/ErgometerDoctorApplication/ConActiveSessions.cs +++ b/ErgometerDoctorApplication/ConActiveSessions.cs @@ -14,8 +14,28 @@ namespace ErgometerDoctorApplication public ConActiveSessions() : base() { this.data = new DataGridView(); + ((System.ComponentModel.ISupportInitialize)(this.data)).BeginInit(); this.labelActiveSessions = new System.Windows.Forms.Label(); // + // SongsTableView + // + this.data.AllowUserToAddRows = false; + this.data.AllowUserToDeleteRows = false; + this.data.AllowUserToResizeRows = false; + this.data.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.data.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.data.Location = new System.Drawing.Point(0, 0); + this.data.MultiSelect = false; + this.data.Name = "Active Sessions"; + this.data.ReadOnly = true; + this.data.RowHeadersVisible = false; + this.data.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.data.Size = new System.Drawing.Size(760, 172); + this.data.TabIndex = 0; + // // ConActiveSessions // this.Dock = System.Windows.Forms.DockStyle.Fill;