private void cargarCbPlanes()
        {
            PlanNegocio pn = new PlanNegocio();

            cbPlanes.DataSource    = pn.GetAll();
            cbPlanes.DisplayMember = "DescripcionPlan";
            cbPlanes.ValueMember   = "Id";
        }
Beispiel #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"));
        }
        private void Listar()
        {
            PlanNegocio pn = new PlanNegocio();

            this.dgvPlanes.DataSource = pn.GetAll();
        }