private void BindFeatureListsData() { ctlFeatureLists.Visible = false; lblFeatureLists.Visible = false; if (ProductGroupId > -1) { List <FeatureListInfo> allFeatureLists = Controller.GetFeatureLists(PortalId, CurrentLanguage); List <FeatureListInfo> selFeatureLists = Controller.GetSelectedFeatureListsByProductGroup(ProductGroupId, CurrentLanguage); foreach (FeatureListInfo featureList in selFeatureLists) { foreach (FeatureListInfo allFeatureList in allFeatureLists) { if (allFeatureList.FeatureListId == featureList.FeatureListId) { allFeatureLists.Remove(allFeatureList); break; } } } ctlFeatureLists.AvailableDataSource = allFeatureLists; ctlFeatureLists.SelectedDataSource = selFeatureLists; ctlFeatureLists.DataBind(); ctlFeatureLists.Visible = true; lblFeatureLists.Visible = true; } }