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

IcxNavigator.CanDelete Method

Returns whether the Delete button should be enabled.

#Declaration

Delphi
function CanDelete: Boolean;

#Returns

Type
Boolean

#Remarks

When the navigator control updates its state (the IcxNavigatorOwner.NavigatorStateChanged method is called), the navigator calls a number of methods that specify whether a particular button must be enabled or disabled.

The CanDelete function is called among them. Implement it to specify whether the current state of the control allows deletion (whether the Delete button is enabled).

To enable the button for the current state, return True. Otherwise, it will be disabled.

See Also