Repository items are used to create in-place editors within container controls (GridControl, TreeList, etc.). To use a specific repository item within a container control, the item must be added to the control's internal repository (see RepositoryItems) or external repository. Repository items added to a control's internal repository cannot be used in other controls. To share the same repository item between multiple controls residing on a single form, use an external repository encapsulated by the 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 required;
-
Assign the repository to the ExternalRepository property of target container controls/components.
- Associate the control's elements (columns, cells, etc) to the repository items stored within the specified external repository.
For instance, use the GridColumn.ColumnEdit property to assign an in-place editor to a grid column. While handling the GridView.CustomRowCellEdit event, use the e.RepositoryItem parameter to dynamically assign an in-place editor to a grid cell.
Refer to the Repositories and Repository Items document for more information.