Back to Devexpress

PivotCustomCellEditEventArgs.RepositoryItem Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotcustomcellediteventargs.md

latest4.1 KB
Original Source

PivotCustomCellEditEventArgs.RepositoryItem Property

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

Declaration

csharp
public RepositoryItem RepositoryItem { get; set; }
vb
Public Property RepositoryItem As RepositoryItem

Property Value

TypeDescription
RepositoryItem

A RepositoryItem descendant that specifies the in-place editor for the current cell.

|

Remarks

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.

winforms-pivotgrid-assign-in-place-editors-to-different-types-of-cells/CS/PivotGridControl_CustomCellEdit/Form1.cs#L27

csharp
if (e.RowValueType == PivotGridValueType.Value)
    e.RepositoryItem = riProgressBar;

winforms-pivot-grid-override-in-place-cell-editor/CS/PivotGridControl_CustomCellEdit/Form1.cs#L23

csharp
if (e.DataField == fieldQuantityPercent & e.RowValueType == PivotGridValueType.Value)
            e.RepositoryItem = riProgressBar;
}

winforms-pivotgrid-assign-in-place-editors-to-different-types-of-cells/VB/PivotGridControl_CustomCellEdit/Form1.vb#L31

vb
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

vb
If e.DataField Is fieldQuantity And e.RowValueType = PivotGridValueType.Value Then
    e.RepositoryItem = riProgressBar
End If

See Also

PivotCustomCellEditEventArgs Class

PivotCustomCellEditEventArgs Members

DevExpress.XtraPivotGrid Namespace