Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#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