Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

GridListEditor.CustomizeFilterTreeNodeModelPropertyCaption Event

Occurs when a filter visual presentation is formed.

Namespace: DevExpress.ExpressApp.Win.Editors

Assembly: DevExpress.ExpressApp.Win.v20.2.dll

NuGet Package: DevExpress.ExpressApp.Win

Declaration

public event EventHandler<CustomizeFilterTreeNodeModelPropertyCaptionEventArgs> CustomizeFilterTreeNodeModelPropertyCaption

Event Data

The CustomizeFilterTreeNodeModelPropertyCaption event's data class is DevExpress.ExpressApp.Win.Editors.CustomizeFilterTreeNodeModelPropertyCaptionEventArgs.

Remarks

Handle this event to customize a property caption when it is shown in the Filter Panel and in the Filter Editor of the GridControl.

For example, you can customize a column caption in the application model to show special text in the column header and at the same time, keep the default property caption in the Filter Panel and in the Filter Editor.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Win.Editors;
//...
public class CustomizeFilterTreeNodeModelPropertyCaptionController : ViewController<ListView> {
    protected override void OnActivated() {
        base.OnActivated();
        GridListEditor editor = View.Editor as GridListEditor;
        if(editor != null) {
            editor.CustomizeFilterTreeNodeModelPropertyCaption += 
Editor_CustomizeFilterTreeNodeModelPropertyCaption;
        }
    }
    private void Editor_CustomizeFilterTreeNodeModelPropertyCaption(object sender, 
CustomizeFilterTreeNodeModelPropertyCaptionEventArgs e) {
        e.Caption = e.DefaultCaption;
    }
}
See Also