ColumnView.FilterPopupExcelCustomizeTemplate Event
Allows you to customize templates for Excel-style filters and for external editors generated with Filtering UI Context.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v21.1.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Grid
Declaration
[DXCategory("Appearance")]
public event FilterPopupExcelCustomizeTemplateEventHandler FilterPopupExcelCustomizeTemplate
Event Data
The FilterPopupExcelCustomizeTemplate event's data class is DevExpress.XtraGrid.Views.Grid.FilterPopupExcelCustomizeTemplateEventArgs.
Remarks
The FilterPopupExcelCustomizeTemplate event is raised each time a user invokes an Excel-style filter and allows you to customize its template.
The code sample below illustrates how to change the background color in an Excel-style filter.
gridView1.FilterPopupExcelCustomizeTemplate += OnFilterPopupExcelCustomizeTemplate;
void OnFilterPopupExcelCustomizeTemplate(object sender, FilterPopupExcelCustomizeTemplateEventArgs e)
{
e.Template.BackColor = System.Drawing.Color.FromArgb(0, 0, 120);
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterPopupExcelCustomizeTemplate event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.