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

TcxDBTreeListOptionsData.AutoCalcKeyValue Property

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

#Declaration

Delphi
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