Skip to main content

LayoutView.FieldCaptionFormat Property

Gets or sets the pattern used to generate field captions.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public string FieldCaptionFormat { get; set; }

Property Value

Type Default Description
String String.Empty

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


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