Back to Devexpress

ValidateDashboardCustomSqlQueryEventArgs.ExceptionMessage Property

dashboard-devexpress-dot-dashboardcommon-dot-validatedashboardcustomsqlqueryeventargs-c95f2936.md

latest2.1 KB
Original Source

ValidateDashboardCustomSqlQueryEventArgs.ExceptionMessage Property

Gets or sets the exception message returned after custom SQL query validation.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public string ExceptionMessage { get; set; }
vb
Public Property ExceptionMessage As String

Property Value

TypeDescription
String

A String value that specifies the exception message returned after custom SQL query validation.

|

Remarks

By default, a custom query used to obtain data from the SQL database should contain only SELECT statements. If the custom query contains not only SELECT statements, or the query is specified incorrectly, the ValidateDashboardCustomSqlQueryEventArgs.Valid property is set to false. The ExceptionMessage property returns the corresponding exception message.

If necessary, you can check the validity of the custom SQL query manually and override the value of the ValidateDashboardCustomSqlQueryEventArgs.Valid flag and corresponding ExceptionMessage message.

See Also

ValidateDashboardCustomSqlQueryEventArgs Class

ValidateDashboardCustomSqlQueryEventArgs Members

DevExpress.DashboardCommon Namespace