Back to Devexpress

RowData.DataContext Property

wpf-devexpress-dot-xpf-dot-grid-dot-rowdata-d6f6fb91.md

latest1.4 KB
Original Source

RowData.DataContext Property

Gets or sets the row’s data context.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public object DataContext { get; set; }
vb
Public Property DataContext As Object

Property Value

TypeDescription
Object

An object that represents the row’s data context.

|

Remarks

DataContext contains a custom dynamic object (implements the ICustomTypeDescriptor interface). This object allows you to access data source object properties and unbound columns, and is useful in the following scenarios:

  • You need to obtain unbound column values.
  • The GridControl functions in Instant Feedback mode, and grid’s rows contain thread-safe wrappers instead of the original data source objects.

See Also

RowData Class

RowData Members

DevExpress.Xpf.Grid Namespace