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
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);
}
See Also