Skip to main content

DxFormLayout.SizeMode Property

Specifies the size of the Form Layout and its inner components.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public SizeMode? SizeMode { get; set; }

Property Value

Type Default Description
Nullable<SizeMode> null

A SizeMode enumeration value.

Available values:

Name Description

Small size.


Medium size.


Large size.


Use the SizeMode property to specify size mode for the Form Layout component.

The following size modes are available:

Size mode


Not specified (NULL)

Form Layout and its inner components inherit their sizes from the Form Layout’s parent component. If the parent component’s size mode is not specified, Form Layout’s size is specified by the SizeMode global option.


The size of Form Layout and its inner components is large.


The size of Form Layout and its inner components is medium.


The size of Form Layout and its inner components is small.

The code below applies the Large size mode:

<DxFormLayout Data="@editFormData" SizeMode="SizeMode.Large">
    <DxFormLayoutItem Field="@nameof(FormDataItem.Name)" Caption="Contact Name:" ColSpanMd="6" />
    <DxFormLayoutItem Field="@nameof(FormDataItem.BirthDate)" Caption="Birth Date:" ColSpanMd="6" />
    <DxFormLayoutItem Field="@nameof(FormDataItem.YearsWorked)" Caption="Years Worked:" ColSpanMd="6">
        <DxSpinEdit @bind-Value="@spinEditValue"></DxSpinEdit>
    <DxFormLayoutItem Field="@nameof(FormDataItem.Position)" Caption="Position:" ColSpanMd="6">
        <DxComboBox Data="@(new List<string>() { "Sales Representative", "Designer" })"
                    Value="@(((string)((ValueEditContext)context).Value))" />
    <DxFormLayoutItem Field="@nameof(FormDataItem.OnVacation)" Caption="On Vacation:" ColSpanMd="6" />

@code {
    FormDataItem editFormData = new FormDataItem() {
        Name = "Nancy Davolio",
        BirthDate = DateTime.Now.AddYears(-30),
        YearsWorked = 3,
        Position = "Sales Representative"
    int spinEditValue { get; set; }

FL normal size

To override the common SizeMode value for an individual item’s editor, define an item template, add a DevExpress data editor to the item, and use the editor’s SizeMode property to specify the size.

<DxFormLayout Data="@editFormData" SizeMode="SizeMode.Small">
    <DxFormLayoutItem Field="@nameof(FormDataItem.YearsWorked)" Caption="Years Worked:" ColSpanMd="6">
        <DxSpinEdit @bind-Value="@spinEditValue" SizeMode="SizeMode.Large"></DxSpinEdit>

For more information, refer to Size Modes.

Run Demo: Form Layout - Overview

See Also