Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomDataController.GetPatternDataController Method

Returns a pattern data controller for a detail data controller.

#Declaration

Delphi
function GetPatternDataController: TcxCustomDataController;

#Returns

Type
TcxCustomDataController

#Remarks

The GetPatternDataController function can be applied only to detail data controllers. Data controllers, which are not details, have no patterns at all.

The function returns a pattern data controller for the current detail data controller.

A pattern data controller does not contain data and is only used to provide settings when creating its clones (instances of the detail data controller corresponding to specific records in a master data controller). Refer to the TcxCustomDataController description for more information on patterns and clones. To know whether the current data controller is a pattern or a non-pattern, use the IsPattern property.

If the current data controller is a pattern, GetPatternDataController returns a reference to the current object.

Changing settings of a pattern data controller does not affect its existing clones. However, you can call the ClearDetails method of a master data controller to recreate detail clones based on the settings of the pattern detail data controller.

To return a master data controller, use the GetMasterDataController function.

See Also