Skip to main content

TcxDBTreeListOptionsData.AutoCalcKeyValue Property

Determines whether the key field values for new nodes are generated automatically.

Declaration

property AutoCalcKeyValue: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

Set this property to True to allow the tree list to generate a key field value for any inserted or appended node. You can handle the tree list’s OnGetUniqueKeyValue event to replace this value with your own.

If the AutoCalcKeyValue property is set to False, you must handle the tree list’s OnInitInsertingRecord event to provide key field values for new nodes.

Note

You can handle the OnInitInsertingRecord event to provide custom values for key and parent fields, regardless of the AutoCalcKeyValue property setting.

The default value of the AutoCalcKeyValue property is False.

See Also