
                }
                PopulateListControl(DropDownList1);
                // Set the initial value if there is one
                string initialValue = DefaultValue;
                if (!String.IsNullOrEmpty(initialValue)) {
                    DropDownList1.SelectedValue = initialValue;
                }
            }
        }
    
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) {
            OnFilterChanged();
        }
    
        public override IQueryable GetQueryable(IQueryable source) {
            string selectedValue = DropDownList1.SelectedValue;
            if (String.IsNullOrEmpty(selectedValue)) {
                return source;
            }
    
            if (selectedValue == NullValueString) {
                return ApplyEqualityFilter(source, Column.Name, null);
            }
    
            IDictionary dict = new Hashtable();
            Column.ExtractForeignKey(dict, selectedValue);
            foreach (DictionaryEntry entry in dict) {
                string key = (string)entry.Key;
                if(DefaultValues != null) {
                    DefaultValues[key] = entry.Value;
                }
                source = ApplyEqualityFilter(source, Column.GetFilterExpression(key), entry.Value);
            }
            return source;
        }
    
    }
}
