Back to Devexpress

ViewRecord Class

xpo-devexpress-dot-xpo-59be4eb7.md

latest1.5 KB
Original Source

ViewRecord Class

A record within the XPView.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public sealed class ViewRecord :
    ICustomTypeDescriptor
vb
Public NotInheritable Class ViewRecord
    Implements ICustomTypeDescriptor

The following members return ViewRecord objects:

Remarks

csharp
XPView view = new XPView(unitOfWork, typeof(Person));
view.AddProperty("Name", "Concat([FirstName], ' ', [LastName])");
foreach(ViewRecord record in view) {
    Console.WriteLine(record["Name"]);
}
vb
Dim view As New XPView(unitOfWork, GetType(Person))
view.AddProperty("Name", "Concat([FirstName], ' ', [LastName])")
For Each record As ViewRecord In view
    Console.WriteLine(record("Name"))
Next record

Inheritance

Object ViewRecord

See Also

ViewRecord Members

DevExpress.Xpo Namespace