Skip to main content
A newer version of this page is available. .

GridView.Assign(BaseView, Boolean) Method

Copies property values and, optionally, event handlers from the View specified as a parameter.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v17.2.dll

Declaration

public override void Assign(
    BaseView v,
    bool copyEvents
)

Parameters

Name Type Description
v BaseView

A BaseView descendant representing the View whose settings should be copied to the current View.

copyEvents Boolean

true to copy event handlers; otherwise, false.

Remarks

Note that the target View is reset before copying. This means that the target View’s column collection, group summary collection and other properties are cleared before synchronizing the Views’ settings.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Assign(BaseView, Boolean) 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.

See Also