Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FilterItem(String, Object) Constructor

Creates a new FilterItem object.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public FilterItem(
    string text,
    object val
)

#Parameters

Name Type Description
text String

A String value that is the textual representation of the created filter item. This value is assigned to the FilterItem.Text property.

val Object

An object representing the filter value. This value is assigned to the FilterItem.Value property.

#Remarks

Use the constructor when handling the ColumnView.ShowFilterPopupListBox event. This event enables you to populate a column’s filter dropdown with custom items.

See Also