Skip to main content
A newer version of this page is available. .

NavigatorCustomButton Class

A custom button within navigator controls.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public class NavigatorCustomButton :
    NavigatorButtonBase,
    IComparable

The following members return NavigatorCustomButton objects:

Remarks

Navigator controls display a set of built-in buttons (which are used to scroll through the records, post and cancel data changes, insert and delete a record etc.), and they also allow you to display custom buttons that perform custom operations.

DataNavigator_CustomButtons

To add a custom button, add a NavigatorCustomButton object to the NavigatorButtonsBase.CustomButtons collection.

By default, custom buttons are displayed after the built-in buttons. To place a custom button at a specific position among the built-in and existing custom buttons, use the NavigatorCustomButton.Index property.

To respond to button clicks, handle the NavigatorBase.ButtonClick event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NavigatorCustomButton class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
NavigatorButtonBase
NavigatorCustomButton
See Also