private void CarregarListaProjetos()
        {
            TarefaEntities1   context    = new TarefaEntities1();
            List <TB_PROJETO> lstProjeto = context.TB_PROJETO.ToList <TB_PROJETO>();

            GVProjeto.DataSource = lstProjeto;
            GVProjeto.DataBind();
        }
Example #2
0
        private void CarregarLista()
        {
            TarefasDBEntities context    = new TarefasDBEntities();
            List <TB_TAREFA>  lstTarefa  = context.TB_TAREFA.ToList <TB_TAREFA>();
            List <TB_PROJETO> lstProjeto = context.TB_PROJETO.ToList <TB_PROJETO>();

            GVTarefa.DataSource = lstTarefa;
            GVTarefa.DataBind();

            GVProjeto.DataSource = lstProjeto;
            GVProjeto.DataBind();
        }