Example #1
0
        private void cbo_empresa_SelectedIndexChanged(object sender, EventArgs e)
        {
            using (var context = new Profit_RGEntities())
            {
                var y = context.pBuscarActivobyName2(cbo_empresa.SelectedValue.ToString()).ToList();

                cbo_catalogo.DataSource    = y;
                cbo_catalogo.DisplayMember = "descripcion";
                cbo_catalogo.ValueMember   = "id_cat_activo";
            }
        }