Skip to main content

RepositoryItemButtonEdit() Constructor

Initializes a new RepositoryItemButtonEdit class instance with default settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public RepositoryItemButtonEdit()

Remarks

The constructor creates a new RepositoryItemButtonEdit class instance and sets properties to their default values. This also creates one ButtonPredefines.Ellipsis kind button within the RepositoryItemButtonEdit.Buttons collection.

When a ButtonEdit control is created, the current constructor is automatically invoked to initialize the control’s ButtonEdit.Properties object. Generally, you do not need to call the RepositoryItemButtonEdit constructor unless you have to create button edit controls for inplace editing (for the Grid Control and other DevExpress container controls).

The following code assigns a button edit control as an editor for an Address column in the Grid Control:

RepositoryItemButtonEdit riButtonEdit = new RepositoryItemButtonEdit();
    gridControl1.RepositoryItems.Add(riButtonEdit);
    gridView1.Columns["Address"].ColumnEdit = riButtonEdit;

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

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.

See Also