private void LoadProblemData() { List<Problem> problem = database.loadProblemTable(txtFilter.Text); problem.ForEach(p => dgvIdHelper.Rows.Add(p.Id, p.Name)); }