Skip to main content

RowData Class

Contains information about a data row.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public class RowData :
    ColumnsRowDataBase,
    ISupportVisibleIndex

Remarks

A RowData object contains information about a data row and serves as a data context (binding source) for the following style and templates: TableView.RowStyle, TableView.DataRowTemplate and TableView.PrintRowTemplate.

Row elements contain RowData objects in their DataContext.

Use the following binding paths to access cell values and ViewModel properties:

  • Row.[YourPropertyName] - access a property of an object in the ItemsSource collection;
  • DataContext.[FieldName] - access a column value;
  • View.DataContext.[YourPropertyName] - access a property in a grid’s ViewModel.

View Example: Build Binding Paths in WPF Data Grid Rows

See Also