Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColumnView.UnboundExpressionEditorCreated Event

Fires after an Expression Editor has been created for an unbound column.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public event UnboundExpressionEditorEventHandler UnboundExpressionEditorCreated

#Event Data

The UnboundExpressionEditorCreated event's data class is UnboundExpressionEditorEventArgs. The following properties provide information specific to this event:

Property Description
Column Gets the column for which the expression editor is created.
ShowExpressionEditor Gets or sets whether to display the expression editor.
StandardExpressionEditorForm Gets the form that contains the created expression editor.

#Remarks

The Expression Editor lets an end-user edit expressions for unbound columns. The Expression Editor can be invoked as described in the GridColumn.ShowUnboundExpressionMenu topic.

The UnboundExpressionEditorCreated event fires after the Expression Editor has been created, but before it’s displayed onscreen.

The event provides the following settings:

  • ShowExpressionEditor - Set this parameter to false to hide the editor.
  • StandardExpressionEditorForm - The form that contains the expression editor.
  • Column - Gets the column for which the expression editor is about to be displayed.
  • ExpressionEditorContext - Allows you to access and customize displayed functions, columns(fields), constants and syntax highlighting color palette.
  • ExpressionEditorView - Allows you to replace the default ExpressionEditor with a custom implementation.
  • ExpressionString - The text presentation of the column’s expression.

For a code sample, see the following example online: How to customize the Expression Editor.

See Also