Back to Devexpress

ASPxValidationSummary.HeaderText Property

aspnet-devexpress-dot-web-dot-aspxvalidationsummary-ce88448a.md

latest2.7 KB
Original Source

ASPxValidationSummary.HeaderText Property

Gets or sets the text content of an editor’s header.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string HeaderText { get; set; }
vb
<DefaultValue("")>
Public Property HeaderText As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies a header text.

|

Remarks

Use the HeaderText property to specify the text displayed within an editor’s header. The position of the text within the header is specified by the ASPxValidationSummary.HorizontalAlign and ASPxValidationSummary.VerticalAlign properties.

Example

The following example demonstrates how to use the ASPxValidationSummary‘s ASPxValidationSummary.ValidationGroup property.

aspx
<dx:ASPxTextBox ID="tbEmail" runat="server" Width="200px">
    <ValidationSettings ValidationGroup="TestGroup">
        <RequiredField IsRequired="True" ErrorText="E-mail is required" />
        <RegularExpression ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ErrorText="Invalid e-mail" />
    </ValidationSettings>
</dx:ASPxTextBox>

<dx:ASPxValidationSummary ID="vsValidationSummary1" runat="server" 
RenderMode="OrderedList" Width="243px" Paddings-PaddingLeft="14px" 
HeaderText="Errors Summary:" ShowErrorsInEditors="True" 
ValidationGroup="TestGroup">
    <Paddings PaddingLeft="14px"></Paddings>
</dx:ASPxValidationSummary>

See Also

HorizontalAlign

VerticalAlign

Validation Summary

ASPxValidationSummary Class

ASPxValidationSummary Members

DevExpress.Web Namespace