コード例 #1
0
        private void CarregarGrid()
        {
            Regras.Regras get = new Regras.Regras();
            List <Regras.Dto.DtoCompeticao> list = get.GetAllCompeticao();

            GridViewCompeticoes.DataSource = list;
            GridViewCompeticoes.DataBind();
        }
コード例 #2
0
        public void ConsultarClick(object sender, EventArgs e)
        {
            Regras.Regras get = new Regras.Regras();
            List <Regras.Dto.DtoCompeticao> list = get.GetCompeticaoPorNome(TextConsulta.Text);

            GridViewCompeticoes.DataSource = list;
            GridViewCompeticoes.DataBind();
        }