Back to Devexpress

VerticalGridExtension.SetEditErrorText(String) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-verticalgridextension-dot-setediterrortext-x28-system-dot-string-x29.md

latest2.1 KB
Original Source

VerticalGridExtension.SetEditErrorText(String) Method

Displays the specified (error) text in a special row at the bottom of the VerticalGrid.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public VerticalGridExtension SetEditErrorText(
    string message
)
vb
Public Function SetEditErrorText(
    message As String
) As VerticalGridExtension

Parameters

NameTypeDescription
messageString

A string value specifying the error text to be displayed.

|

Returns

TypeDescription
VerticalGridExtension

A VerticalGridExtension object representing the VerticalGrid extension.

|

Remarks

If Model data is invalid or an error occurs during data changes, you can use the grid’s SetEditErrorText method to display a common error text in a special row at the bottom of the VerticalGrid.

This method can be used together with the automatic Model error visualization feature controlled by the grid’s MVCxVerticalGridEditingSettings.ShowModelErrorsForEditors property.

See Also

ShowModelErrorsForEditors

Vertical Grid

VerticalGridExtension Class

VerticalGridExtension Members

DevExpress.Web.Mvc Namespace