示例#1
0
    public void Bind()
    {
        string  FromVoc = txtFromorec.Text.Trim();
        string  ToVoc   = txttorec.Text.Trim();
        DataSet ds      = new DataSet();

        ds = PettyCashEntry.GetVoucher_Payment(FromVoc, ToVoc);
        if (ds.Tables[0].Rows.Count != 0)
        {
            gvPayment.DataSource = ds;
            gvPayment.DataBind();
            gvPayment.Visible = true;
            btnsave.Visible   = true;
        }
        else
        {
            message("NO Record Found");
            gvPayment.Visible = false;
            btnsave.Visible   = false;
        }
    }