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

NavigatorBase.TextStringFormat Property

Gets or sets the string displayed within the NavigatorBase control which identifies the current record and the total number of records.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public virtual string TextStringFormat { get; set; }

#Property Value

Type Description
String

A string displayed within the Navigator control.

#Remarks

The navigator control can display a string that identifies the current record and the total number of records.

DataNavigator

Use the NavigatorBase.TextLocation property to specify the location of the text.

This string’s format is specified by the TextStringFormat property. The property’s default value is “Record {0} of {1}”. The {0} substring will be substituted with the ordinal number of the current record. The {1} subtring will be substituted with the total number of records.

Use the TextStringFormat property to modify the default string. Alternatively you can create a localizer that will provide a different value for the TextStringFormat property. See the Localizing WinForms Controls via Localizer Objects topic for how to create a custom localizer.

See Also