Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ITypeInfo.DefaultMember Property

Returns metadata on the current type’s default member.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

IMemberInfo DefaultMember { get; }

#Property Value

Type Description
IMemberInfo

The metadata on the current type’s default member.

#Remarks

XAF checks if a business class contains the following properties and sets DefaultMember to the first found property:

  1. The property specified by the class’s DefaultPropertyAttribute or XafDefaultPropertyAttribute.
  2. A property whose name matches or contains one of the DevExpress.ExpressApp.DC.TypeInfo.DefaultPropertyNames values (Name, Title, Subject, Caption, Description, Benennung, Nombre, Nome). These values are arranged in priority order. For example, if a business class has both ObjectName and Description properties, DefaultMember returns ObjectName.
  3. The property specified by the class’s FriendlyKeyPropertyAttribute.
  4. The property specified by the class’s KeyAttribute.

The following behavior is specific to the default members:

  • Lookup Property Editors display default member values.
  • Default members take part in form caption generation.
  • In List Views, reference property columns display values of a referenced object’s default member. The FullTextSearch Action considers these values when it filters objects.
  • List Views display the default member column first.
See Also