DxFormLayout.ItemSizeMode Property

Specifies the size of the Form Layout’s inner components.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll


public SizeMode? ItemSizeMode { get; set; }

Property Value

Type Default Description


A SizeMode enumeration value.

Available values:

Name Description

Small size.


Medium size.


Large size.


Use the ItemSizeMode property to specify size mode for the components located within Form Layout items.

The following size modes are available:

Size mode


Not specified (NULL)

Form Layout item’s inner components inherit their sizes from Form Layout’s parent component. For example, if Form Layout is in Data Grid, Form Layout’s inner component size is controlled by the InnerComponentSizeMode property.
If the parent component’s size mode is not specified, Form Layout item’s inner component size is specified by the SizeMode global option.


The size of Form Layout item’s inner components is large.


The size of Form Layout item’s inner components is medium.


The size of Form Layout item’s inner components is small.

The code below applies the Medium size mode to the Form Layout item’s inner editors that support size modes.

<DxFormLayout Data="@editFormData" ItemSizeMode="SizeMode.Medium">
    <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 ItemSizeMode 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" ItemSizeMode="SizeMode.Medium">
    <DxFormLayoutItem Field="@nameof(FormDataItem.YearsWorked)" Caption="Years Worked:" ColSpanMd="6">
        <DxSpinEdit @bind-Value="@spinEditValue" SizeMode="SizeMode.Small"></DxSpinEdit>

For more information, refer to Size Modes.

Run Demo: Form Layout - Overview

See Also