Back to Devexpress

RepositoryItem.BeginInit() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-4cffc7af.md

latest2.7 KB
Original Source

RepositoryItem.BeginInit() Method

Notifies the editor that the initialization has been started.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void BeginInit()
vb
Public Overridable Sub BeginInit

Remarks

This method supports the internal infrastructure and is not intended to be used directly in your code.

To prevent excessive display updates when changing multiple properties, use the RepositoryItem.BeginUpdate and RepositoryItem.EndUpdate methods.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeginInit() 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-tokenedit-in-unbound-column/CS/Form1.cs#L30

csharp
RepositoryItemTokenEdit rep = new RepositoryItemTokenEdit();
rep.BeginInit();
rep.Tokens.BeginUpdate();

winforms-grid-tokenedit-in-unbound-column/VB/Form1.vb#L32

vb
Dim rep As RepositoryItemTokenEdit = New RepositoryItemTokenEdit()
rep.BeginInit()
rep.Tokens.BeginUpdate()

See Also

EndInit()

IsLoading

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace