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.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public VerticalGridExtension SetEditErrorText(
string message
)
#Parameters
Name | Type | Description |
---|---|---|
message | String | A string value specifying the error text to be displayed. |
#Returns
Type | Description |
---|---|
Vertical |
A Vertical |
#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.