A newer version of this page is available. Switch to the current version.

RowData Class

Contains information about a data row.

Namespace: DevExpress.Xpf.Grid

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

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.

Note

The complete sample project is available in the following repository: https://github.com/DevExpress-Examples/how-to-build-binding-paths-in-gridcontrol-rows.

See Also