Skip to main content

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

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