Back to Devexpress

RepositoryItemButtonEdit.BeginInit() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitembuttonedit-6fbbba82.md

latest2.5 KB
Original Source

RepositoryItemButtonEdit.BeginInit() Method

Performs specific actions before control initialization.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override void BeginInit()
vb
Public Overrides 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.

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#L84

csharp
if(properties.Buttons[0].Kind != button.Kind) {
    properties.BeginInit();
    properties.Buttons.Clear();

See Also

RepositoryItemButtonEdit Class

RepositoryItemButtonEdit Members

DevExpress.XtraEditors.Repository Namespace