Example #1
0
    private void CarregaGrid()
    {
        PedidoBD proBD = new PedidoBD();
        DataSet  ds    = proBD.SelectContaCliente(Convert.ToInt32(ddlCliente.SelectedItem.Value));

        gdvFinalizarConta.DataSource = ds.Tables[0].DefaultView;
        gdvFinalizarConta.DataBind();

        DataSet ds2 = proBD.RetornaTotal(Convert.ToInt32(ddlCliente.SelectedItem.Value));

        gdvTotal.DataSource = ds2.Tables[0].DefaultView;
        gdvTotal.DataBind();
    }
    private void CarregaGrid()
    {
        PedidoBD proBD = new PedidoBD();
        DataSet  ds    = proBD.SelectContaCliente(Convert.ToInt32(Session["Cliente"]));

        gdvMinhaConta.DataSource = ds.Tables[0].DefaultView;
        gdvMinhaConta.DataBind();

        DataSet ds2 = proBD.RetornaTotal(Convert.ToInt32(Session["Cliente"]));

        gdvTotal.DataSource = ds2.Tables[0].DefaultView;
        gdvTotal.DataBind();
    }