This commit is contained in:
itsmattkc 2019-08-06 13:00:51 +10:00
commit be7916d50e
2 changed files with 6 additions and 6 deletions

View file

@ -33,11 +33,6 @@ namespace Rebuilder
Height = 540;
CenterToScreen();
table.ReadOnly = true;
table.RowHeadersVisible = false;
table.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
table.AllowUserToResizeRows = false;
table.CellClick += new DataGridViewCellEventHandler(TableCellClicked);
table.Columns.Add("name", "Name");
@ -81,6 +76,11 @@ namespace Rebuilder
Shown += new EventHandler(OnShow);
FormClosing += new FormClosingEventHandler(OnClose);
table.ReadOnly = true;
table.RowHeadersVisible = false;
table.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
table.AllowUserToResizeRows = false;
}
private void OnClose(object sender, FormClosingEventArgs e)

View file

@ -62,7 +62,7 @@ namespace Rebuilder
TableLayoutPanel grid = new TableLayoutPanel();
grid.Dock = DockStyle.Fill;
grid.ColumnCount = 2;
grid.ColumnCount = 3;
grid.AutoSize = true;
// Create automatic evenly spaced layout