void readDGVlayout() { dgvSettings = utils.DataGridViewSettings.Deserialize(utils.helpers.getAppPath() + utils.DataGridViewSettings.settingsFileConst); if (dgvSettings == null) { return; } for (int x = 0; x < dataGridView1.Columns.Count; x++) { dataGridView1.Columns[x].Visible = dgvSettings.columns[x].visible; dataGridView1.Columns[x].Width = dgvSettings.columns[x].width; dataGridView1.Columns[x].HeaderText = dgvSettings.columns[x].header; } this.Location = dgvSettings.form_location; this.Size = dgvSettings.form_size; }
void readDGVlayout() { dgvSettings = utils.DataGridViewSettings.Deserialize(utils.helpers.getAppPath() + utils.DataGridViewSettings.settingsFileConst); if (dgvSettings == null) return; for (int x = 0; x < dataGridView1.Columns.Count; x++ ) { dataGridView1.Columns[x].Visible = dgvSettings.columns[x].visible; dataGridView1.Columns[x].Width = dgvSettings.columns[x].width; dataGridView1.Columns[x].HeaderText = dgvSettings.columns[x].header; } this.Location = dgvSettings.form_location; this.Size = dgvSettings.form_size; }