void DetailDataBind()
    {
        try
        {
            dsDetail = objStock.QueryDetail(pageIndex, pageSize, this.lblBillNo.Text);
            //    pager2.RecordCount = billDetail.GetRowCount("BILLNO='" + this.lblBillNo.Text + "'");
            //    pager2.CurrentPageIndex = pageIndex2;
            //    if (dsDetail.Tables[0].Rows.Count == 0)
            //    {
            //        this.hdnDetailRowIndex.Value = "0";
            //        this.lblMsg.Visible = true;
            //    }
            //    else
            //    {
            //        this.lblMsg.Visible = false;
            //    }
            this.dgDetail.DataSource = dsDetail.Tables[0];
            this.dgDetail.DataBind();

            //    dsAllotment = objAllot.QueryAllotment(1, 10000, "BILLNO='" + this.lblBillNo.Text + "'", "BILLNO,ID");
            //    this.dgAllotment.DataSource = dsAllotment.Tables[0];
            //    this.dgAllotment.DataBind();
        }
        catch (Exception)
        {
            throw;
        }
    }