private void BtnSearchDocNo_Click(object sender, EventArgs e) { try { using (DBAuditDataContext dc = new DBAuditDataContext()) { var c = dc.ProGetCureByDocNo(TxtDocNo.Text); GrdViewCure.DataSource = c; ComboName.Text = ""; ComboLocation.Text = ""; } } catch (Exception EX) { MessageBox.Show(EX.Message); } }