Back to Devexpress

ObjectViewController<ViewType, ObjectType>.ViewCurrentObject Property

expressappframework-devexpress-dot-expressapp-dot-objectviewcontroller-2-8d256817.md

latest2.1 KB
Original Source

ObjectViewController<ViewType, ObjectType>.ViewCurrentObject Property

Gets the current object (see View.CurrentObject).

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[Browsable(false)]
public ObjectType ViewCurrentObject { get; }
vb
<Browsable(False)>
Public ReadOnly Property ViewCurrentObject As ObjectType

Property Value

TypeDescription
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

ObjectViewController<ViewType, ObjectType> Class

ObjectViewController<ViewType, ObjectType> Members

DevExpress.ExpressApp Namespace