private void SelectPatient(string Prefix) { OPDPatientMasterBLL objOPDPatient = new OPDPatientMasterBLL(); List <EntityPatientMaster> lst = objOPDPatient.SearchPatient(Prefix); if (lst != null) { dgvPatientList.DataSource = lst; dgvPatientList.DataBind(); lblRowCount.Text = string.Empty; } }
private void GetPatientListsearch(string Prefix) { try { OPDPatientMasterBLL mobjPatientMasterBLL = new OPDPatientMasterBLL(); List <EntityPatientMaster> ldtRequisition = mobjPatientMasterBLL.GetAllPatientssearch(Prefix); ldtRequisition.Insert(0, new EntityPatientMaster() { PatientId = 0, FullName = "----Select----" }); ddlPatient.DataSource = ldtRequisition; ddlPatient.DataTextField = "FullName"; ddlPatient.DataValueField = "PatientId"; ddlPatient.DataBind(); } catch (Exception ex) { lblMsg.Text = ex.Message; } }