Back to Devexpress

EditProperties.ValidationSettings Property

aspnet-devexpress-dot-web-dot-editproperties.md

latest2.3 KB
Original Source

EditProperties.ValidationSettings Property

Gets the editor’s validation settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ValidationSettings ValidationSettings { get; }
vb
Public ReadOnly Property ValidationSettings As ValidationSettings

Property Value

TypeDescription
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.

aspx
<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

Validation

Validation Settings

Validation Error Message

EditProperties Class

EditProperties Members

DevExpress.Web Namespace