windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-customrowcellediteventargs.md
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
public RepositoryItem RepositoryItem { get; set; }
Public Property RepositoryItem As RepositoryItem
| Type | Description |
|---|---|
| RepositoryItem |
The CustomRowCellEditEventArgs.RepositoryItem descendant which specifies the current in-place editor.
|
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.
if (percent < 25)
e.RepositoryItem = _prbLess25;
else if (percent < 50)
string type = view.GetRowCellValue(e.RowHandle, "Type").ToString();
if (type == "0") e.RepositoryItem = ritemVegetables;
if (type == "1") e.RepositoryItem = ritemFruits;
if(order != null) {
e.RepositoryItem = order.Active ? activeRepositoryItemButtonEdit : inactiveRepositoryItemButtonEdit;
}
winforms-custom-buttonedit-display-editvalue-on-button/CS/TestMyButtonEdit/Form1.cs#L38
if (e.Column.FieldName == "Info")
e.RepositoryItem = repositoryItemMBE;
}
winforms-grid-display-edit-rtf-data/CS/Form1.cs#L56
if (e.Column.FieldName == "Rich")
e.RepositoryItem = riPopup;
}
If percent < 25 Then
e.RepositoryItem = _prbLess25
ElseIf percent < 50 Then
If type = "0" Then
e.RepositoryItem = ritemVegetables
End If
winforms-custom-buttonedit-display-editvalue-on-button/VB/TestMyButtonEdit/Form1.vb#L39
If e.Column.FieldName = "Info" Then
e.RepositoryItem = repositoryItemMBE
End If
winforms-grid-display-edit-rtf-data/VB/Form1.vb#L49
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
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