RepositoryItemButtonEdit() Constructor

Initializes a new RepositoryItemButtonEdit class instance with default settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public RepositoryItemButtonEdit()
Public Sub New

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;
See Also