private void btnSearch_Click(object sender, EventArgs e) { try { dgvReport.DataSource = rc.GetSolutionsByMember(Convert.ToInt32(cmbMemberName.SelectedValue.ToString())); } catch (Exception ex) { MessageBox.Show(ex.Message); } }