Back to Devexpress

CustomRowCellEditEventArgs.RepositoryItem Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-customrowcellediteventargs.md

latest6.2 KB
Original Source

CustomRowCellEditEventArgs.RepositoryItem Property

Gets or sets the editor used to edit the currently processed cell.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
RepositoryItem

The CustomRowCellEditEventArgs.RepositoryItem descendant which specifies the current in-place editor.

|

Remarks

Assign a required CustomRowCellEditEventArgs.RepositoryItem descendant to the RepositoryItem property to use this editor for cell editing.

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-grid-display-colored-progress-bars/CS/ColoredProgressBar/DifferentRepositoriesProgressBar.cs#L60

csharp
if (percent < 25)
    e.RepositoryItem = _prbLess25;
else if (percent < 50)

winforms-grid-filter-lookup-column-based-on-another-column-editform/CS/FilterLookUpsEditForm/FormDifferentSources.cs#L73

csharp
string type = view.GetRowCellValue(e.RowHandle, "Type").ToString();
if (type == "0") e.RepositoryItem = ritemVegetables;
if (type == "1") e.RepositoryItem = ritemFruits;

XAF-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record/CS/EFCore/ButtonInListEF/ButtonInListEF.Win/Controllers/SimpleBusinessActionGridListViewController.cs#L94

csharp
if(order != null) {
    e.RepositoryItem = order.Active ? activeRepositoryItemButtonEdit : inactiveRepositoryItemButtonEdit;
}

winforms-custom-buttonedit-display-editvalue-on-button/CS/TestMyButtonEdit/Form1.cs#L38

csharp
if (e.Column.FieldName == "Info")
        e.RepositoryItem = repositoryItemMBE;
}

winforms-grid-display-edit-rtf-data/CS/Form1.cs#L56

csharp
if (e.Column.FieldName == "Rich")
        e.RepositoryItem = riPopup;
}

winforms-grid-display-colored-progress-bars/VB/ColoredProgressBar/DifferentRepositoriesProgressBar.vb#L65

vb
If percent < 25 Then
    e.RepositoryItem = _prbLess25
ElseIf percent < 50 Then

winforms-grid-filter-lookup-column-based-on-another-column-editform/VB/FilterLookUpsEditForm/FormDifferentSources.vb#L73

vb
If type = "0" Then
    e.RepositoryItem = ritemVegetables
End If

winforms-custom-buttonedit-display-editvalue-on-button/VB/TestMyButtonEdit/Form1.vb#L39

vb
If e.Column.FieldName = "Info" Then
    e.RepositoryItem = repositoryItemMBE
End If

winforms-grid-display-edit-rtf-data/VB/Form1.vb#L49

vb
Private Sub gridView1_CustomRowCellEditForEditing(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs)
    If Equals(e.Column.FieldName, "Rich") Then e.RepositoryItem = riPopup
End Sub

winforms-grid-custom-button-caption-customrowcelledit-event/VB/WindowsApplication1/Form1.vb#L49

vb
Private Sub gridView1_CustomRowCellEdit(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs)
    e.RepositoryItem = GetRepositoryItem(e.CellValue)
End Sub

See Also

CustomRowCellEditEventArgs Class

CustomRowCellEditEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace