FilterControlEventArgs.Context Property
Provides access to the ExpressionEditorContext object, which allows you to customize the FilterEditorControl‘s “Text” tab.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
ExpressionEditorContext | An ExpressionEditorContext object that allows you to customize the FilterEditorControl‘s “Text” tab. |
Remarks
To access the ExpressionEditorContext object, handle the ColumnView.FilterEditorCreated event.
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) });
}
This allows you to add new columns or hide existing ones, change capitalization rules for columns and functions, specify a custom color palette for highlighting criteria nodes, and more. See this Expression Editor example for details.
See Also