Skip to main content
A newer version of this page is available. .

RepositoryItemTimeSpanEdit.AllowEditSeconds Property

Gets or sets whether you can edit seconds in the time interval.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll


[SmartTagProperty("Allow Edit Seconds", "")]
public bool AllowEditSeconds { get; set; }

Property Value

Type Default Description


true, if you can edit seconds in the time interval; otherwise, false.


By default, an end-user is allowed to edit seconds using the edit box or tiles in the drop-down panel.


Set the AllowEditSeconds property to false to hide the second tiles from the drop-down panel and prohibit editing seconds in the time interval.

To specify the maximum and minimum value for the seconds component of the time interval, use the RepositoryItemTimeSpanEdit.MaxSeconds and RepositoryItemTimeSpanEdit.MinSeconds properties.

To specify how the time span is edited from the edit box, assign the required date-time mask to the RepositoryItemTimeEdit.EditMask property. The editor supports mask specifiers for days (‘d’), hours (‘H’), minutes (‘m’), seconds (‘s’) and second fractions (‘f’). See examples below.

timeSpanEdit1.Properties.EditMask = "";
// Enables editing milliseconds from the drop-down.
timeSpanEdit1.Properties.AllowEditMilliseconds = true;
timeSpanEdit1.Properties.EditMask = "HH-mm-ss-fff";
timeSpanEdit1.Properties.EditMask = "d/HH/mm/ss/fff";
See Also