Esempio n. 1
0
        private void BindReviewers()
        {
            if (formView.FindControl("ddlReviewers") != null)
            {
                DropDownList ReviewersDDL  = (DropDownList)formView.FindControl("ddlReviewers");
                var          ReviewerItems = LookupBLL.GetReviewersByUserRegion(UserSubStateRegionId, Scope.SubStateRegion);
                if (ReviewerItems != null && ReviewerItems.Count() > 0)
                {
                    ReviewerItems = ReviewerItems.Where(item => item.Key != UserData.UserId);
                }

                ReviewersDDL.DataSource = ReviewerItems;

                ReviewersDDL.DataTextField  = "Value";
                ReviewersDDL.DataValueField = "Key";
                ReviewersDDL.DataBind();
            }
        }