private void BinddlOrderList()
 {
     dlOrderList.DataSource = orderobj.OrderbyBuyer(Session["BuyerId"].ToString(), "LotSample");
     dlOrderList.DataBind();
     foreach (RepeaterItem dli in dlOrderList.Items)
     {
         int OrderID = Convert.ToInt32(((Label)dli.FindControl("lbtnOrderID")).Text);
         ((ImageButton)dlOrderList.Items[dli.ItemIndex].FindControl("ibtnNOExpColap")).ImageUrl = "~/images/collapse.JPG";
         string OrderStatus = (dli.FindControl("lblStatus") as Label).Text;
         string Status      = (dli.FindControl("lblReceiveDate") as Label).Text;
         if (!string.IsNullOrEmpty(Status))
         {
             (dli.FindControl("lblReceiveDate") as Label).Visible = true;
             (dli.FindControl("pReceive") as Panel).Visible       = false;
             (dli.FindControl("btnOrderPlace") as Button).Visible = true;
             (dli.FindControl("btnCancel") as Button).Visible     = true;
             (dli.FindControl("btnSplitOrder") as Button).Visible = true;
             (dli.FindControl("btnDisableOrderPlace")).Visible    = false;
             (dli.FindControl("btnDisableCancel")).Visible        = false;
             (dli.FindControl("btnDisableSplitOrder")).Visible    = false;
         }
         else
         {
             if (OrderStatus == "SAMPLE DISPATCH")
             {
                 (dli.FindControl("pReceive") as Panel).Visible = true;
             }
         }
         string Lsstr = (dli.FindControl("hfLS") as HiddenField).Value.ToString();
         if (!string.IsNullOrEmpty(Lsstr))
         {
             (dli.FindControl("hlLS") as HyperLink).Visible    = true;
             (dli.FindControl("lbtnLS") as LinkButton).Visible = true;
         }
         (dli.FindControl("gvOrderHistory") as GridView).DataSource = orderobj.GetOrderProductDetails(OrderID.ToString());
         (dli.FindControl("gvOrderHistory") as GridView).DataBind();
     }
 }