示例#1
0
        protected void Reload()
        {
            TextGrupo.MaxLength      = 20;
            TextFornecedor.MaxLength = 20;
            TextCNPJ.MaxLength       = 20;
            TextCEP.MaxLength        = 50;
            TextRua.MaxLength        = 100;
            TextRazao.MaxLength      = 100;
            _ler = new LerSelect();
            var Dt = _ler.LerFornecedor();

            if (Dt != null)
            {
                GridFornecedor.DataSource = Dt.ValDataTable;
                GridFornecedor.DataBind();
            }
            _ler = new LerSelect();
            var DtEstado = _ler.LerDropEstado();

            if (DtEstado != null && DropEstado.Text == "")
            {
                DropEstado.DataTextField = "Estados";
                DropEstado.DataSource    = DtEstado.ValDataTable;
                DropEstado.DataBind();
                DropEstado.AppendDataBoundItems = true;
            }
        }