Skip to main content

SqlDataSource.ValidateCustomSqlQueryGlobal Event

Provides the capability to check the validity of the custom SQL query used to supply SQL data sources with data.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public static event ValidateCustomSqlQueryEventHandler ValidateCustomSqlQueryGlobal

Event Data

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

Property Description
CustomSqlQuery Gets a custom SQL query being validated.
ExceptionMessage Gets or sets the exception message returned after validation of the custom SQL query.
Valid Gets or sets whether or not the current SQL query is valid.

Remarks

Handle the ValidateCustomSqlQueryGlobal event to validate custom SQL for all queries created in your applications.

Note

The ValidateCustomSqlQueryGlobal event is raised before SqlDataSource.ValidateCustomSqlQuery.

See Also