Пример #1
0
 private void cargarCbPlanes()
 {
     PlanNegocio pn = new PlanNegocio();
     cbIdPlan.DataSource = pn.GetAll();
     cbIdPlan.DisplayMember = "DescripcionPlan";
     cbIdPlan.ValueMember = "Id";
 }
Пример #2
0
        public void CargaDropDownListPlanes()
        {
            PlanNegocio pn = new PlanNegocio();

            this.PlanesDropDownList.DataSource = pn.GetAll();
            this.PlanesDropDownList.DataValueField = "Id";
            this.PlanesDropDownList.DataTextField = "DescripcionPlan";
            this.PlanesDropDownList.DataBind();
            this.PlanesDropDownList.Items.Insert(0, new ListItem("Seleccione Plan.", "0"));
        }
Пример #3
0
 private void Listar()
 {
     PlanNegocio pn = new PlanNegocio();
     this.dgvPlanes.DataSource = pn.GetAll();
 }