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

DateEdit.AllowRoundOutOfRangeValue Property

Gets or sets whether automatic rounding of out of the range values is enabled.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool AllowRoundOutOfRangeValue { get; set; }

#Property Value

Type Description
Boolean

true to automatically round out of the range values; otherwise, false.

#Remarks

The range of values which can be assigned to the editor’s value is specified by the DateEdit.MinValue and DateEdit.MaxValue properties. If the AllowRoundOutOfRangeValue property is set to true and an end-user inputs a value which is greater than the maximum allowed value, the edit value is automatically set to DateEdit.MaxValue. Otherwise, if the value entered by an end-user is less than the minimum allowed value, the edit value is set to DateEdit.MinValue.

See Also