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

GridListEditor.CustomizeFilterTreeNodeModelPropertyCaption Event

Occurs when a filter visual presentation is formed.

Namespace: DevExpress.ExpressApp.Win.Editors

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

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