Back to Devexpress

ASPxVerticalGrid.CustomErrorText Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-d1a0d081.md

latest3.0 KB
Original Source

ASPxVerticalGrid.CustomErrorText Event

Enables you to provide custom error descriptions.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxVerticalGridCustomErrorTextEventHandler CustomErrorText
vb
Public Event CustomErrorText As ASPxVerticalGridCustomErrorTextEventHandler

Event Data

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

PropertyDescription
ErrorTextGets or sets the error text. Inherited from ASPxGridCustomErrorTextEventArgs.
ErrorTextKindIndicates the error source. Inherited from ASPxGridCustomErrorTextEventArgs.
ExceptionGets the exception. Inherited from ASPxGridCustomErrorTextEventArgs.

Remarks

The CustomErrorText event occurs when any exception is raised within the ASPxVerticalGrid, and allows you to change the error text displayed by default. This can be useful if you want to localize error messages.

Use the ASPxGridCustomErrorTextEventArgs.ErrorText property to specify the error text.

The exception can be obtained via the ASPxGridCustomErrorTextEventArgs.Exception property. If the exception has been raised within the ASPxVerticalGrid.RecordValidating event handler, the ASPxGridCustomErrorTextEventArgs.ErrorTextKind property returns GridErrorTextKind.RowValidate. Otherwise, it returns GridErrorTextKind.General.

See Also

Vertical Grid

Custom Error Text for Callback Exception

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace