コード例 #1
0
    public void CarregaClienteProduto()
    {
        string           mail = Convert.ToString(Session["ID"]);
        ClienteprodutoBD bd   = new ClienteprodutoBD();
        DataSet          ds   = bd.SelectAll(mail);

        GridView1.DataSource = ds.Tables[0].DefaultView;
        GridView1.DataBind();
    }
コード例 #2
0
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string mail = Convert.ToString(Session["ID"]);

        ClienteprodutoBD bd = new ClienteprodutoBD();
        DataSet          ds = bd.SelectAll(mail);

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