ColumnView.Assign(BaseView, Boolean) Method
Copies properties and, optionally, event handlers from another View to the current one.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
v | Base |
A Base |
copy |
Boolean | true if event handlers should be copied; otherwise, false. |
#Remarks
If the specified View is a ColumnView object or descendant, the Assign method copies columns and their settings (properties and event handlers). Before copying columns, all columns in the current View are deleted.
Note
If you copy settings to a grid control’s View before this grid’s data source is initialized, certain column settings (e.
- Set the target grid’s data source after the Assign method is called.
- Call the target View’s View.
Data Controller. Re Populate Columns method after the Assign method is called.
More details can be found in this support ticket.