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

XafDefaultPropertyAttribute Class

Applied to business classes. Specifies the default property.

Namespace: DevExpress.ExpressApp.DC

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true)]
public class XafDefaultPropertyAttribute :
    Attribute

#Remarks

This interface is a replacement for the DefaultPropertyAttribute that can be applied both to classes and interfaces. Use this interface to specify the default property, as it is demonstrated in the How to: Specify a Display Member (for a Lookup Editor, Detail Form Caption, etc.) topic.

Default property values are displayed in the following:

  • detail form captions;
  • the leftmost columns of List Views;
  • Lookup List Views;
  • Lookup Editors in an unexpanded state.

#Inheritance

Object
Attribute
XafDefaultPropertyAttribute
See Also