Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RowData.DataContext Property

Gets or sets the row’s data context.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.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