EditorContainer.RepositoryItems Property

Provides access to the control's internal repository of in-place editors.

Namespace: DevExpress.XtraEditors.Container

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
[InheritableCollection]
public virtual RepositoryItemCollection RepositoryItems { get; }
<Browsable(False)>
<InheritableCollection>
Public Overridable ReadOnly Property RepositoryItems As RepositoryItemCollection

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.

Examples

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.

CD_Repository_Assign_DateEditor_Example

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;
See Also