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

TCustomdxPSExplorerItem.CanRename Method

Returns a value indicating end-users can start editing the item’s caption.

#Declaration

Delphi
function CanRename: Boolean; virtual;

#Returns

Type
Boolean

#Remarks

End-users are allowed to edit folder and report captions within the explorer tree. To start editing the selected item, they should click on it or press the F2 key If the selected item’s CanRename method returns True, the item’s caption is switched to edit mode, otherwise editing doesn’t start.

As implemented in the TCustomdxPSExplorerItem class, the CanRename method returns True if the explorer component allows renaming this item. This takes place if the item is not the root item and it is not loaded at the moment.

See Also