Skip to main content
.NET 6.0+

XafApplication.FindListViewId(Type) Method

Returns the ID of the List View which is used for objects of a specified type by default.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp


public string FindListViewId(
    Type objectType


Name Type Description
objectType Type

A Type object representing a business object type.


Type Description

A string value that represents the ID of the View used to display objects whose type is specified by the objectType parameter.


Use this method when you need to specify the ID of the View which must be created for the current object type. For example, when using the XafApplication.CreateListView method to create a List View, you need to pass the ID of the View to be created. The FindListViewId method returns the value of the DefaultListViewId property of the Application Model‘s BOModel | <Class> node. This node defines the type passed as the viewId parameter.

You can use the analogous XafApplication.GetListViewId method to raise an exception if the appropriate View ID is not found.

See Also