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

VisibleInDetailViewAttribute Class

Specifies whether the View Item that corresponds to the target business class property is visible in a Detail View.

Namespace: DevExpress.Persistent.Base

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public class VisibleInDetailViewAttribute :
    ModelExportedBoolValueAttribute

#Remarks

If you want a particular property of a business class to not be visible in a Detail View that displays objects of this class, apply the VisibleInDetailView attribute to this property, and pass false as the attribute’s value parameter. In this instance, a Views | <DetailView> | Layout | LayoutItem node will not be generated for this property in the Application Model. If you do not apply this attribute, a View Item will be generated and arranged according to the XAF internal layout rules (see View Items Layout Customization).

The value passed as the VisibleInDetailView attribute’s value parameter, is assigned to the read-only IModelMember.IsVisibleInDetailView property of the Application Model‘s BOModel | <Class> | OwnMembers | <Member> node. Use the Model Editor, to see whether a particular property is visible in a Detail View.

Note

By default, the value which is passed as the VisibleInListView attribute’s value parameter remains in descendants of the target property’s class.

#Inheritance

Object
Attribute
DevExpress.Persistent.Base.ModelExportedValueAttribute
DevExpress.Persistent.Base.ModelExportedBoolValueAttribute
VisibleInDetailViewAttribute
See Also