Skip to main content

CellEditContext.DataItem Property

Returns the current data item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.2.dll

NuGet Package: DevExpress.Blazor


public object DataItem { get; }

Property Value

Type Description

A data item.


The following example illustrates how to use the DataItem property that returns a grid row.

<DxDataGrid Data="@DataSource">
    <DxDataGridColumn Field="@nameof(Product.ProductCategoryId)" >
                var cellEditContext = (CellEditContext)context;
                int currentCellValue = (int)cellEditContext.CellValue;
                var currentDataItem = cellEditContext.DataItem;

Online Demo

Data Grid - Templates

See Also