Skip to main content
All docs
V25.1
  • DxDateEditSettings.FirstDayOfWeek Property

    Specifies the first day of the date editor’s week.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(DayOfWeek.Sunday)]
    [Parameter]
    public DayOfWeek FirstDayOfWeek { get; set; }

    Property Value

    Type Default Description
    DayOfWeek Sunday

    The first day of a week.

    Remarks

    Use the FirstDayOfWeek property to specify the first day of a week in the date editor.

    <DxGrid Data="@employees" PageSize="4" EditMode="GridEditMode.EditRow">
        <Columns>
            <DxGridCommandColumn />
            <DxGridDataColumn FieldName="FirstName" />
            <DxGridDataColumn FieldName="LastName" />
            <DxGridDataColumn FieldName="HireDate" >
                 <EditSettings>
                    <DxDateEditSettings FirstDayOfWeek="DayOfWeek.Monday" />
                </EditSettings>
            </DxGridDataColumn>
            <DxGridDataColumn FieldName="Email" />
        </Columns>
    </DxGrid>
    
    @code {
        Employee[]? employees;
        protected override async Task OnInitializedAsync() {
            employees = await EmployeeData.GetData();
        }
    }
    

    Grid - WeekNumberRule

    To change the first day of the date editor’s week at runtime, use the IDateEditSettings.FirstDayOfWeek property instead.

    Implements

    See Also