private void loadCarePlanDateTime() { ListItem li = new ListItem("Select CarePlanDateTime...", "0"); ddlCarePlanDateTime.Items.Add(li); List <CarePlanDateTime> carePlanDateTimes = new List <CarePlanDateTime>(); carePlanDateTimes = CarePlanDateTimeManager.GetAllCarePlanDateTimes(); foreach (CarePlanDateTime carePlanDateTime in carePlanDateTimes) { ListItem item = new ListItem(carePlanDateTime.CarePlanDateTimeName.ToString(), carePlanDateTime.CarePlanDateTimeID.ToString()); ddlCarePlanDateTime.Items.Add(item); } }
private void showCarePlanDateTimeGrid() { gvCarePlanDateTime.DataSource = CarePlanDateTimeManager.GetAllCarePlanDateTimes(); gvCarePlanDateTime.DataBind(); }