示例#1
0
 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;
 }
示例#2
0
 private void setupGrid()
 {
     this.dgvAutos.DataSource = dao.getAllCars();
 }