windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcustomcellediteventargs.md
Gets or sets the in-place editor for the current cell.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
public RepositoryItem RepositoryItem { get; set; }
Public Property RepositoryItem As RepositoryItem
| Type | Description |
|---|---|
| RepositoryItem |
A RepositoryItem descendant that specifies the in-place editor for the current cell.
|
The default in-place editor for a cell is identified by the PivotGridField.FieldEdit property. You can override this editor for particular cells, assigning another repository item to the RepositoryItem property. Note that all repository items used in the Pivot Grid Control must be added to the DevExpress.XtraPivotGrid.PivotGridControl.RepositoryItems collection. If you create repository items manually in code, you need to manually add them to this collection.
The following code snippets (auto-collected from DevExpress Examples) contain references to the RepositoryItem property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if (e.RowValueType == PivotGridValueType.Value)
e.RepositoryItem = riProgressBar;
winforms-pivot-grid-override-in-place-cell-editor/CS/PivotGridControl_CustomCellEdit/Form1.cs#L23
if (e.DataField == fieldQuantityPercent & e.RowValueType == PivotGridValueType.Value)
e.RepositoryItem = riProgressBar;
}
If e.RowValueType = PivotGridValueType.GrandTotal Then
e.RepositoryItem = riSpinEdit
End If
winforms-pivot-grid-override-in-place-cell-editor/VB/PivotGridControl_CustomCellEdit/Form1.vb#L29
If e.DataField Is fieldQuantity And e.RowValueType = PivotGridValueType.Value Then
e.RepositoryItem = riProgressBar
End If
See Also
PivotCustomCellEditEventArgs Class