ViewFilter.Clone() Method

Creates a copy of the current ViewFilter object.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.2.dll


public object Clone()
Public Function Clone As Object


Type Description

A copy of the current ViewFilter object.


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