DxDateEditSettings.FirstDayOfWeek Property
Specifies the first day of the date editor’s week.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.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();
}
}
To change the first day of the date editor’s week at runtime, use the IDateEditSettings.FirstDayOfWeek property instead.
Implements
See Also