Back to Devexpress

EditGridCellData Class

wpf-devexpress-dot-xpf-dot-grid-6ea9d4ac.md

latest2.9 KB
Original Source

EditGridCellData Class

Contains information about a data cell in edit mode.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public class EditGridCellData :
    GridCellData,
    IDataErrorInfo
vb
Public Class EditGridCellData
    Inherits GridCellData
    Implements IDataErrorInfo

Remarks

An EditGridCellData object contains information about a data cell in edit mode and serves as a data context (binding source) for the following styles: TableView.AutoFilterRowCellStyle, ColumnBase.CellStyle, DataViewBase.CellStyle, ColumnBase.NewItemRowCellStyle and TableView.NewItemRowCellStyle.

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

  • Value - access the current cell value;
  • Column - access the current column;
  • RowData.Row.[YourPropertyName] - access a property of an object from the ItemsSource collection;
  • Data.[FieldName] - access column values in Server Mode or if you use the RealTimeSource, access unbound column values;
  • View.DataContext.[YourPropertyName] - access a property in a grid’s ViewModel.

View Example: Build Binding Paths in WPF Data Grid Cells

Inheritance

Object DispatcherObject DependencyObject DataObjectBase EditableDataObject GridDataBase GridColumnData GridCellData EditGridCellData

See Also

EditGridCellData Members

DevExpress.Xpf.Grid Namespace