public void CreateDeleteView() { CreateButton createButton = new CreateButton(); createButton.Create(ref _buttonDelete, this, this.Width - 150, this.Height - 80, _buttonDelete_Click); for (int i = 0; i < dataGridViewMagazines.ColumnCount - 1; i++) { dataGridViewMagazines.Columns[i].ReadOnly = true; } }
public void CreateDeleteView() { CreateButton createButton = new CreateButton(); createButton.Create(ref _deleteButton, this, this.Width - 100, this.Height - 70, _deleteButton_Click); for (int i = 0; i < dataGridViewNewspapers.ColumnCount - 1; i++) { dataGridViewNewspapers.Columns[i].ReadOnly = true; } }