Skip to main content
A newer version of this page is available.
All docs
V19.2

ViewFilter.Clone() Method

Creates a copy of the current ViewFilter object.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public object Clone()

Returns

Type Description
Object

A copy of the current ViewFilter object.

Remarks

The Clone method creates a new ViewFilter object and copies the filter criteria in the current ViewFilter object to the new one.

Each filter condition consists of a column (GridColumn object) and filter condition (ColumnFilterInfo object). Columns are copied by their references, i.e. the columns’ references in the new collection will refer to the same objects as the references in the original collection.

For the filter conditions, the Clone method creates new copies of the ColumnFilterInfo objects. The attributes of the new ColumnFilterInfo objects are copies of the original ColumnFilterInfo objects’ attributes

See Also