Skip to main content

DxFormLayoutItem.Field Property

Specifies a data source field assigned to the current layout item.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public string Field { get; set; }

Property Value

Type Default Description
String null

The data source field name.


You can use the Form Layout component to display and edit data from an external source. In this case, use the Field property to declare and bind Form Layout items to data source fields.

<DxFormLayout Data="@editFormData" CaptionPosition="CaptionPosition.Vertical">
    <DxFormLayoutItem Field="@nameof(FormDataItem.Name)" Caption="Contact Name:" />
    <DxFormLayoutItem Field="@nameof(FormDataItem.Birthday)" Caption="Birthday:"  />
    <DxFormLayoutItem Field="@nameof(FormDataItem.Worked)" Caption="Worked year(s):" />

@code {
    FormDataItem editFormData = new FormDataItem() {
        Name = "Nancy Davolio",
        Birthday = DateTime.Now.AddYears(-30),
        Worked = 3,
        Position = "Sales Representative"

Run Demo: Form Layout - Bind to Data

See Also