ComponentEditorContainer.ExternalRepository Property
Gets or sets the external editors repository.
Namespace: DevExpress.XtraEditors.Container
Assembly: DevExpress.XtraEditors.v21.1.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation
Declaration
[DefaultValue(null)]
[DXCategory("Data")]
public PersistentRepository ExternalRepository { get; set; }
Property Value
Type | Default | Description |
---|---|---|
PersistentRepository | *null* | A PersistentRepository component holding a collection of repository items that can be used to create inplace editors. |
Remarks
Repository items are used to create in-place editors within container controls (XtraGrid, XtraTreeList, XtraBars, etc). To use a specific repository item within a container control it should be added to the control’s internal or external repository. Repository items added to a control’s internal repository cannot be used in other controls. If you want to create and customize repository items only once and be able to share them between several controls use an external repository. An external repository is represented by a PersistentRepository component.
You can work with an external repository as follows:
- place a PersistentRepository component onto the form;
- add repository items to the created repository and customize their settings as needed;
- assign the repository to the ExternalRepository property of controls/components that will use the repository items.
After an external repository has been assigned, the control/component allows you to bind its elements (columns, cells, etc) to the repository items stored within the repository specified.