Skip to main content

RowData.DataContext Property

Gets or sets the row’s data context.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public object DataContext { get; set; }

Property Value

Type Description
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