TreeList.FormatRuleExpressionEditorCreated Event

Allows you to customize the Expression Editor embedded in the Edit Formatting Rule dialog.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

public event FormatRuleExpressionEditorEventHandler FormatRuleExpressionEditorCreated
Public Event FormatRuleExpressionEditorCreated As FormatRuleExpressionEditorEventHandler

Event Data

The FormatRuleExpressionEditorCreated event's data class is DevExpress.XtraTreeList.FormatRuleExpressionEditorEventArgs.

Remarks

If the TreeListOptionsMenu.ShowConditionalFormattingItem property is enabled, users can create and edit format rules at runtime. To create and modify an expression-based format rule, the user employs the embedded Expression Editor.

You can handle the FormatRuleExpressionEditorCreated event to customize this editor. Use the event's IFilterEditor parameter to access and modify the Expression Editor's settings.

Example

The following example handles the FormatRuleExpressionEditorCreated event to present operand and operator lists as menus, instead of default comboboxes.

private void treeList1_FormatRuleExpressionEditorCreated(object sender, DevExpress.XtraTreeList.FormatRuleExpressionEditorEventArgs e) {
    e.IFilterEditor.UseMenuForOperandsAndOperators = true;
}
NOTE

The TreeListOptionsFilter.DefaultFilterEditorView property specifies the default display style of the embedded Expression Editor.

See Also