private void LoadMedicationData() { List<Medication> medication = database.loadMedicationTable(txtFilter.Text); medication.ForEach(m => dgvIdHelper.Rows.Add(m.Id, m.Name, m.Type, m.Generic_Name, m.Morphine_Equivalent__mg_, m.Sustained_Release, m.Short_Acting)); }