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

BaseFilterControlEventArgs.Context Property

Provides access to the ExpressionEditorContext object, which allows you to customize the FilterEditorControl‘s “Text” tab.

Namespace: DevExpress.XtraEditors.Filtering

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public ExpressionEditorContext Context { get; }

#Property Value

Type Description
ExpressionEditorContext

An ExpressionEditorContext object that allows you to customize the FilterEditorControl‘s “Text” tab.

#Remarks

Use the Context property to add new columns or hide existing ones, change capitalization rules for columns and functions, specify a custom color palette, and more.

void gridView1_FilterEditorCreated(object sender, DevExpress.XtraGrid.Views.Base.FilterControlEventArgs e) {
    e.Context.Columns.Add(new DevExpress.Data.Controls.ExpressionEditor.ColumnInfo { Name = "New Column", Type = typeof(int) });
}

See the Expression Editor example for more information.

See Also