Lord Jinxy
Lord Jinxy
CC#
Created by Lord Jinxy on 1/7/2024 in #help
Disabling sorting for a specific DataGridView column
A fragment from the Designer.cs automade file regarding DataGridView element creation.
this.mainTable.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.mainTable.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.mainTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.mainTable.Location = new System.Drawing.Point(15, 163);
this.mainTable.MultiSelect = false;
this.mainTable.Name = "dataGridView1";
this.mainTable.ReadOnly = true;
this.mainTable.RowHeadersWidth = 51;
this.mainTable.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
this.mainTable.RowTemplate.Height = 24;
this.mainTable.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.mainTable.SelectionMode = DataGridViewSelectionMode.CellSelect;
this.mainTable.Size = new System.Drawing.Size(240, 150);
this.mainTable.TabIndex = 7;
this.mainTable.Visible = false;
this.mainTable.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.mainTable.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.mainTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.mainTable.Location = new System.Drawing.Point(15, 163);
this.mainTable.MultiSelect = false;
this.mainTable.Name = "dataGridView1";
this.mainTable.ReadOnly = true;
this.mainTable.RowHeadersWidth = 51;
this.mainTable.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders;
this.mainTable.RowTemplate.Height = 24;
this.mainTable.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.mainTable.SelectionMode = DataGridViewSelectionMode.CellSelect;
this.mainTable.Size = new System.Drawing.Size(240, 150);
this.mainTable.TabIndex = 7;
this.mainTable.Visible = false;
3 replies
CC#
Created by Lord Jinxy on 1/7/2024 in #help
Disabling sorting for a specific DataGridView column
3 replies
CC#
Created by the_sea_jay on 12/29/2022 in #help
❔ Best way to you Read lot of files?
I guess you might try File.ReadAllText() method.
13 replies