EditorContainer.RepositoryItems Property
Provides access to the control’s internal repository of in-place editors.
Namespace: DevExpress.XtraEditors.Container
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[Browsable(false)]
[InheritableCollection]
public virtual RepositoryItemCollection RepositoryItems { get; }
Property Value
Type | Description |
---|---|
RepositoryItemCollection | A RepositoryItemCollection object containing repository items whose settings are used to create in-place editors. |
Remarks
The RepositoryItems property provides access to a control’s internal repository of in-place editors. Each element in this repository is a repository item, whose settings are used to create a specific in-place editor (an editor for editing cell values in container controls, e.g., GridControl, TreeList, VGridControl, etc.)
Ensure that each repository item used in a container control is added to the control’s internal or external repository. When a repository item is created using a control’s designer at design time, it is added to the control’s internal repository automatically. When an item is created at runtime, it must be added to the control’s internal or external repository manually.
To add a repository item to an external repository, use the EditorContainer.ExternalRepository property.
Example
The following code shows how to assign a DateEdit in-place editor to a TreeList column in a TreeList control. This example creates the required repository item (RepositoryItemDateEdit), adds it to the control’s internal repository and then binds the repository item to a column.
RepositoryItemDateEdit riDateEdit = new RepositoryItemDateEdit();
// Customize the item...
// Add the item to the control's internal repository.
treeList1.RepositoryItems.Add(riDateEdit);
// Bind the item to the control's column.
treeList1.Columns["Start Date"].ColumnEdit = riDateEdit;
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RepositoryItems 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.