Back to Devexpress

RepositoryItem.EndInit() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-8f5dfa92.md

latest3.1 KB
Original Source

RepositoryItem.EndInit() Method

Notifies the editor that the initialization has been completed.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void EndInit()
vb
Public Overridable Sub

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 snippets (auto-collected from DevExpress Examples) contain references to the EndInit() 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.

XAF-how-to-add-an-unbound-column-to-gridlisteditor-to-execute-a-custom-action-for-a-record/CS/EFCore/ButtonInListEF/ButtonInListEF.Win/Controllers/SimpleBusinessActionGridListViewController.cs#L87

csharp
properties.Buttons.Add(button);
    properties.EndInit();
}

winforms-grid-tokenedit-in-unbound-column/CS/Form1.cs#L44

csharp
rep.Tokens.EndUpdate();
    rep.EndInit();
}

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

vb
rep.Tokens.EndUpdate()
    rep.EndInit()
End Try

See Also

BeginInit()

IsLockUpdate

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace