Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxDateEditSettings.FirstDayOfWeek Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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.

razor
<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