Back to Devexpress

FilterControlColumnCollection Class

aspnet-devexpress-dot-web-6a945afc.md

latest3.1 KB
Original Source

FilterControlColumnCollection Class

Represents a collection of filter columns.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class FilterControlColumnCollection :
    Collection,
    IBoundPropertyCollection,
    IEnumerable
vb
Public Class FilterControlColumnCollection
    Inherits Collection
    Implements IBoundPropertyCollection,
               IEnumerable

The following members return FilterControlColumnCollection objects:

Remarks

The ASPxFilterControl isn’t designed to operate with the bound source control. To enable end-users to construct filter criteria, you should manually create filter columns and add them to the ASPxFilterControl.Columns collection. The ASPxFilterControl provides eight column types (text, spin, combo box columns, etc.).

The example below demonstrates how to create a filter column in code:

csharp
private void CreateSpinEditColumn(ASPxFilterControl filterControl, string propertyName, 
        string displayName) {
    FilterControlSpinEditColumn filterColumn = new FilterControlSpinEditColumn();
    filterColumn.PropertyName = propertyName;
    filterColumn.DisplayName = displayName;
    filterControl.Columns.Add(filterColumn);
}

Implements

IList

ICollection

IStateManager

DevExpress.Utils.IAssignableCollection

DevExpress.XtraEditors.Filtering.IBoundPropertyCollection

IEnumerable

Inheritance

Object StateManagedCollectionBase Collection FilterControlColumnCollection MVCxFilterControlColumnCollection<RowType>

MVCxFilterControlColumnCollection

See Also

FilterControlColumnCollection Members

ASPxFilterControl

Filter Control

DevExpress.Web Namespace