The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll


[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public class VisibleInDetailViewAttribute :
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, Inherited:=True)>
Public Class VisibleInDetailViewAttribute
    Inherits ModelExportedBoolValueAttribute


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.


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


See Also