private void BindInvoiceProductsDetails() { DataTable dtInvProducts = new DataTable(); dtInvProducts = objOrder.BranchOrderDetails(txtInvno.Text); if (dtInvProducts.Rows.Count > 0) { txtInvDate.Text = dtInvProducts.Rows[0]["BranchOrderDate"].ToString(); ddlProduct.DataSource = dtInvProducts; ddlProduct.DataTextField = "ProductName"; ddlProduct.DataValueField = "ProductId"; ddlProduct.DataBind(); ddlProduct.Items.Insert(0, MudarApp.AddListItem()); } }