Back to Devexpress

RepositoryItem.LockEvents() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-9fd9063b.md

latest2.5 KB
Original Source

RepositoryItem.LockEvents() Method

This method supports the .NET Framework infrastructure and is not intended to be called from your code.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void LockEvents()
vb
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Sub LockEvents

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

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.

winforms-grid-display-editors-in-columns-headers/CS/WindowsApplication1/InplaceEditorHelper/ColumnInplaceEditorHelper.cs#L122

csharp
ActiveEditor = _Item.CreateEditor();
ActiveEditor.Properties.LockEvents();
ActiveEditor.Parent = view.GridControl;

winforms-grid-display-editors-in-columns-headers/VB/InplaceEditorHelper/ColumnInplaceEditorHelper.vb#L115

vb
ActiveEditor = _Item.CreateEditor()
ActiveEditor.Properties.LockEvents()
ActiveEditor.Parent = view.GridControl

See Also

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace