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

ObjectViewController<ViewType, ObjectType>.ViewCurrentObject Property

Gets the current object (see View.CurrentObject).

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[Browsable(false)]
public ObjectType ViewCurrentObject { get; }

#Property Value

Type Description
ObjectType

An object of the type specified using the ObjectViewController<ViewType, ObjectType>‘s ObjectType generic parameter representing the View’s current object.

#Remarks

In the ServerView, InstantFeedback, InstantFeedbackView, and DataView List View data access modes, reading this property value causes an extra request to the database. If this request is unwanted for performance reasons, use the View.CurrentObject property, which returns an IObjectRecord wrapper instead of the business object itself.

See Also