Esempio n. 1
0
        protected void Reload()
        {
            _ler = new LerSelect();
            var Dt = _ler.LerUsuarios();

            if (Dt != null)
            {
                GridUsuarios.DataSource = Dt.ValDataTable;
                GridUsuarios.DataBind();
            }
            _ler = new LerSelect();
            var DtLoja = _ler.LerDropLojaCad();

            if (DtLoja != null && DropFornecedor.Items.Count.ToString() == "0")
            {
                DropFornecedor.DataTextField  = "Loja Des";
                DropFornecedor.DataValueField = "Loja Val";
                DropFornecedor.DataSource     = DtLoja.ValDataTable;
                DropFornecedor.DataBind();
                DropFornecedor.AppendDataBoundItems = true;
            }
        }