private void GridViewBand()
    {
        ReceiptAdapter da = new ReceiptAdapter();
        DataSet        ds = da.getReceipts();

        GridView1.DataSource = ds;
        GridView1.DataBind();
    }
示例#2
0
    private void ddlReceiptTypeBind()
    {
        ReceiptAdapter ra = new ReceiptAdapter();
        DataSet        ds = ra.getReceipts();

        ddl_receipt_type.DataTextField  = "name";
        ddl_receipt_type.DataValueField = "code";
        ddl_receipt_type.DataSource     = ds;
        ddl_receipt_type.DataBind();
    }