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

RepositoryItemCalcEdit.Precision Property

Gets or sets the maximum number of digits displayed to the right of the decimal point when the dropdown is open.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(6)]
[DXCategory("Behavior")]
public int Precision { get; set; }

#Property Value

Type Default Description
Int32 6

The maximum number of digits displayed in the fractional part of the value.

#Remarks

The Precision property specifies the maximum number of digits displayed to the right of the decimal point when the dropdown calculator is open. An end-user cannot enter values using the dropdown calculator with a fractional part longer than the value specified by the Precision property.

When the calculator is closed and focused, the value is formatted depending upon the mask specified by the RepositoryItemCalcEdit.EditMask property. This can be used to specify the number of digits in the fractional part.

RepositoryItem.DisplayFormat specifies the format used to represent the edit value when the editor is not focused.

See Also