private void UpdateTypeList() { var typeList = from type in this.TypeOptions orderby type.Name select new { HashCode = type.FullName.GetHashCode(), Label = type.GetShortLabel() }; TypeSelector.DataSource = typeList; TypeSelector.DataTextField = "Label"; TypeSelector.DataValueField = "HashCode"; TypeSelector.DataBind(); }