Back to Devexpress

RepositoryItemGridLookUpEditBase.BeginInit() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemgridlookupeditbase-2532f93f.md

latest3.0 KB
Original Source

RepositoryItemGridLookUpEditBase.BeginInit() Method

Starts the control’s runtime initialization.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, 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 BaseView.BeginUpdate and BaseView.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.

reporting-winforms-label-report-in-code/CS/Reporting_how-to-create-a-label-report-at-runtime-t473792/Form1.cs#L56

csharp
private void InitLabelProductEditor() {
    lookUpLabelProduct.Properties.BeginInit();
    lookUpLabelProduct.Properties.DataSource = helper.GetLabelProducts().ToList();

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/Form1.vb#L48

vb
Private Sub InitLabelProductEditor()
    lookUpLabelProduct.Properties.BeginInit()
    lookUpLabelProduct.Properties.DataSource = helper_Renamed.GetLabelProducts().ToList()

See Also

RepositoryItemGridLookUpEditBase Class

RepositoryItemGridLookUpEditBase Members

DevExpress.XtraEditors.Repository Namespace