GridLookupExtension.SetEditErrorText(String) Method
Displays the specified (error) text in a special row at the bottom of the grid’s Edit Form.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Parameters
Name | Type | Description |
---|---|---|
message | String | A string value specifying the text to be displayed within the Edit Form’s bottom. |
Returns
Type | Description |
---|---|
GridLookupExtension | A GridLookupExtension object representing the GridLookup 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 grid’s edit form.
This method can be used together with the automatic Model error visualization feature controlled by the grid’s MVCxGridViewEditingSettings.ShowModelErrorsForEditors (via GridLookupSettings.GridViewProperties.SettingsEditing.ShowModelErrorsForEditors) property.