windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcustomcellediteventargs.md
Gets or sets the in-place editor for the current cell.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
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.
|
To supply a custom in-place editor to the SpreadsheetControl’s cell, a specific repository item should be created. A repository item is a RepositoryItem class descendant that stores properties and events related to a specific editor. It has all the information required for creating a corresponding fully-functional editor. Refer to the Editors and Simple Controls topic for details on the repository technology.
For more information on how to embed custom in-place editors within worksheet cells, see the Custom Cell In-place Editors example.
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-spreadsheet-use-custom-cell-editors/CS/DevAVInvoicing/Form1.cs#L87
if (e.ValueObject.TextValue == "FOBSpinEdit")
e.RepositoryItem = CreateSpinEdit(0, 500, 5);
else if (e.ValueObject.TextValue == "TermsSpinEdit")
winforms-spreadsheet-control-create-a-data-entry-form/CS/DataEntryFormSample/MainForm.cs#L59
if (e.ValueObject.IsText)
e.RepositoryItem = CreateCustomEditor(e.ValueObject.TextValue);
}
winforms-spreadsheet-assign-custom-in-place-editors/CS/Spreadsheet_CustomCellEditors/Form1.cs#L68
// Assign the SpinEdit editor to a cell.
e.RepositoryItem = repository;
}
winforms-spreadsheet-use-custom-cell-editors/VB/DevAVInvoicing/Form1.vb#L77
If Equals(e.ValueObject.TextValue, "FOBSpinEdit") Then
e.RepositoryItem = CreateSpinEdit(0, 500, 5)
ElseIf Equals(e.ValueObject.TextValue, "TermsSpinEdit") Then
winforms-spreadsheet-control-create-a-data-entry-form/VB/DataEntryFormSample/MainForm.vb#L68
If e.ValueObject.IsText Then
e.RepositoryItem = CreateCustomEditor(e.ValueObject.TextValue)
End If
winforms-spreadsheet-assign-custom-in-place-editors/VB/Spreadsheet_CustomCellEditors/Form1.vb#L58
' Assign the SpinEdit editor to a cell.
e.RepositoryItem = repository
End If
See Also
SpreadsheetCustomCellEditEventArgs Class