private void setupGrid() { this.dataGridView1.DataSource = dao.getAllCars(); this.dataGridView1.ReadOnly = true; this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridView1.MultiSelect = false; this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.ColumnHeadersVisible = false; }
private void setupGrid() { this.dgvAutos.DataSource = dao.getAllCars(); }