Example #1
0
        public void ConsultarClick(object sender, EventArgs e)
        {
            Regras.Regras consulta = new Regras.Regras();
            List <Regras.Dto.DtoTipoCompeticao> list = consulta.GetTipoCompeticaoPorNome(TextConsulta.Text);

            GridViewTipoCompeticao.DataSource = list;
            GridViewTipoCompeticao.DataBind();
        }
Example #2
0
        private void CarregarGrid()
        {
            Regras.Regras dados          = new Regras.Regras();
            var           tipoCompeticao = dados.GetAllTipoCompeticao();

            GridViewTipoCompeticao.DataSource = tipoCompeticao;
            GridViewTipoCompeticao.DataBind();
        }