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