Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["carrinhoCompras"] != null)
            {
                carrinho = Session["carrinhoCompras"] as List <Itens>;
            }

            gridProdutos.DataSource = ProdutoBS.getAll();
            gridProdutos.DataBind();
            if (!IsPostBack)
            {
                list_clientes.DataSource     = ClienteBS.GetAll();
                list_clientes.DataTextField  = "cpfCliente";
                list_clientes.DataValueField = "idCliente";
                list_clientes.DataBind();
            }

            RenderItensTable();
            RenderFinishTransaction();
        }
 private void ReloadGrid()
 {
     gridProdutos.DataSource = ProdutoBS.getAll();
     gridProdutos.DataBind();
 }