TcxCustomDBTreeList.OnGetUniqueKeyValue Event
Enables you to specify the key field value (also called the unique identifier) for a new node.
Declaration
property OnGetUniqueKeyValue: TcxDBTreeListGetUniqueKeyValueEvent read; write;
Remarks
This event fires when the following conditions are met:
The tree list’s OptionsData.AutoCalcKeyValue property is set to True.
The tree list’s OnInitInsertingRecord event is not handled or False is passed as the AHandled parameter to its handler.
KeyValue specifies the node’s unique identifier generated by the tree list. Replace this identifier with your own.
See Also