Skip to main content

RepositoryItemMRUEdit() Constructor

Initializes a new RepositoryItemMRUEdit class instance with default settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public RepositoryItemMRUEdit()

Remarks

This constructor creates a new RepositoryItemMRUEdit class instance and sets its properties to their default values.

When a MRUEdit control is created, the constructor is automatically invoked to create and initiate a RepositoryItemMRUEdit object exposed via the control’s MRUEdit.Properties property. Usually you do not need to call the RepositoryItemMRUEdit constructor manually unless you have to create editors for inplace use within container controls (Grid Control, for instance).

The following code uses the constructor to assign an MRU edit control as the editor for the Customer column in Grid Control control:

RepositoryItemMRUEdit riMemoEdit = new RepositoryItemMRUEdit();
gridControl1.RepositoryItems.Add(riMRUEdit);
gridView1.Columns["Customer"].ColumnEdit = riMRUEdit;
See Also