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

VisibleInListViewAttribute Class

Specifies whether the column that corresponds to the target business class property is initially visible in a List 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 VisibleInListViewAttribute :
    ModelExportedBoolValueAttribute

#Remarks

Tip

Use the HideInUI.ListViewColumn attribute instead.

If you want to customize the default process of list view columns generation and make a particular property of a business class initially visible in the List View that displays objects of this class, apply the VisibleInListView attribute to this property and pass true as the attribute’s value parameter. If you do not want a property to be visible in the List View, apply this attribute and pass false as the value parameter.

The value passed as the VisibleInListView attribute’s value parameter, is set for the read-only IModelMember.IsVisibleInListView 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 List View.

Note

An end-user can change a column’s visibility via the Column Chooser, if the GridListEditor or ASPxGridListEditor is used to display the List 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
VisibleInListViewAttribute
See Also