Skip to main content
A newer version of this page is available. .

FormLayoutItemBase.Caption Property

Specifies a Form Layout group, tab, or item caption.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string Caption { get; set; }

Property Value

Type Description
String

A string object that specifies the caption.

Remarks

A caption is a short description or explanation. You can specify a caption for a group, tab, or item:

<DxFormLayout>
    <DxFormLayoutGroup Caption="Personal Information">
        <DxFormLayoutItem Caption="First Name:" ColSpanMd="6">
            @* ... *@
        </DxFormLayoutItem>
    </DxFormLayoutGroup>

    <DxFormLayoutGroup Caption="Work Information" BeginRow="true">
        <DxFormLayoutItem Caption="Position:" ColSpanMd="6">
            @* ... *@
        </DxFormLayoutItem>
    </DxFormLayoutGroup>
</DxFormLayout>

Group captions

To specify a custom layout for a group header, use the HeaderTemplate property.

Run Demo: Form Layout - Groups

See Also