RowData.DataContext Property

Gets or sets the row's data context.

Namespace: DevExpress.Xpf.Grid

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

Declaration

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

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