Skip to main content
A newer version of this page is available. .

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.2.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.

FilterPopupExcelCustomizeTemplate

gridView1.FilterPopupExcelCustomizeTemplate += OnFilterPopupExcelCustomizeTemplate;

void OnFilterPopupExcelCustomizeTemplate(object sender, FilterPopupExcelCustomizeTemplateEventArgs e)
{
    e.Template.BackColor = System.Drawing.Color.FromArgb(0, 0, 120);
}
See Also