private async void LoadInstrumentGrid() { //Instanciere repository med henblik på at læse instrumentgrupper ind i datagridview InstrumentRepository rep = new InstrumentRepository(); //nulstiller datasource InstrumentGrpGrid.DataSource = null; //loader instrumentgrupper ind med metode fra repository List <Instrument> instrumenter = await rep.HentInstrumenterAsync(valgtVareGruppeId); //Lister instrumentgrupperne ved at sætte listen af instrumentgrupper som datasource på instrumentgrpgrid InstrumentGrpGrid.DataSource = instrumenter; }