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

LayoutView.FieldCaptionFormat Property

Gets or sets the pattern used to generate field captions.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DefaultValue("")]
[DXCategory("CardOptions")]
[XtraSerializableProperty]
public string FieldCaptionFormat { get; set; }

#Property Value

Type Default Description
String String.Empty

A string that represents the pattern used to generate field captions.

#Remarks

Field captions in LayoutViews are generated according to the pattern specified by the FieldCaptionFormat property. In this pattern, the {0} placeholder represents the current field’s caption. To get the actual display captions, use the LayoutView.GetFieldCaption method. It returns field display captions generated according to the FieldCaptionFormat property.

The default pattern (“{0}:”) means that field captions are followed by the colon characters.

See Also