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
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;
}
}