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

XRDesignMdiController.ValidateCustomSql Event

Occurs when a custom SQL query is validated.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v24.2.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

#Declaration

public event EventHandler<ValidateSqlEventArgs> ValidateCustomSql

#Event Data

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

Property Description
ConnectionParameters Provides access to settings used to establish the current data connection.
Message Specifies the error message to display if query validation fails.
Sql Contains the SQL query to validate.
Valid Specifies whether the query is valid.

#Remarks

Handle the ValidateCustomSql event to provide custom query validation in the Data Source wizard.

To validate custom SQL for all queries created in an End-User Report Designer for WinForms, handle the SqlDataSource.ValidateCustomSqlQueryGlobal event.

See Also