Skip to main content
Tab

EditProperties.ValidationSettings Property

Gets the editor’s validation settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public ValidationSettings ValidationSettings { get; }

Property Value

Type Description
ValidationSettings

A ValidationSettings object that contains validation settings.

Remarks

Use the ValidationSettings property to access and customize the settings that relate to editor validation.

Note

The ValidationSettings property synchronizes its value with the editor’s ASPxEdit.ValidationSettings property.

<dx:GridViewDataTextColumn FieldName="CategoryName" VisibleIndex="2">
    <PropertiesTextEdit>
        <ClientSideEvents Validation="OnValidation" />
        <ValidationSettings ErrorDisplayMode="None">
            <RequiredField IsRequired="true" ErrorText="CategoryName Is Required" />
        </ValidationSettings>
    </PropertiesTextEdit>
</dx:GridViewDataTextColumn>

View Example: Grid View for ASP.NET Web Forms - Display a custom error message in a detail row on the client

See Also