Skip to main content

IcxNavigator.CanInsert Method

Returns whether the Insert button should be enabled.

Declaration

function CanInsert: Boolean;

Returns

Type
Boolean

Remarks

Each time the state of navigation of the control is changed, the IcxNavigatorOwner.NavigatorStateChanged method must be called. This method checks the enabled state of all buttons. For this purpose, it calls several methods of the IcxNavigator interface implemented by the bound control. One of them is the CanInsert function, whose return value specifies whether the Insert button should be enabled. To enable the button for the current item, return True. If False is returned, the button will be disabled.

See Also