public void getRepairBySN(string SN) { List <RepairView> repairsView = sql.getRepairBySN(SN); dataGridView1.ItemsSource = repairsView; dataGridView1.IsReadOnly = true; }