windowsforms-devexpress-dot-xtraeditors-dot-filtering-dot-basefiltercontroleventargs-454f58bd.md
Provides access to the ExpressionEditorContext object, which allows you to customize the FilterEditorControl‘s “Text” tab.
Namespace : DevExpress.XtraEditors.Filtering
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public ExpressionEditorContext Context { get; }
Public ReadOnly Property Context As ExpressionEditorContext
| Type | Description |
|---|---|
| ExpressionEditorContext |
An ExpressionEditorContext object that allows you to customize the FilterEditorControl‘s “Text” tab.
|
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) });
}
Private Sub gridView1_FilterEditorCreated(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.FilterControlEventArgs)
e.Context.Columns.Add(New DevExpress.Data.Controls.ExpressionEditor.ColumnInfo With {.Name = "New Column", .Type = GetType(Integer)})
End Sub
See the Expression Editor example for more information.
See Also
BaseFilterControlEventArgs Class