Example #1
0
        private void cargarResoluciones()
        {
            ManejoDatos datos = new ManejoDatos();
            //   string idConsejo = Session["CONSEJO"].ToString();
            string idConsejo = ((ConsejoDir)Session["CONSEJO"]).Codigo;

            List <ResolucionVista> resoluciones = datos.ObtenerResolucionesVista(idConsejo);

            ViewState["RESOLUCIONES"] = resoluciones;
            var bs1 = new BindingSource();

            bs1.DataSource            = resoluciones;
            gvResoluciones.DataSource = bs1; //<-- notes it takes the entire bindingSource
            gvResoluciones.DataBind();
        }