LayoutView.FieldCaptionFormat Property

Gets or sets the pattern used to generate field captions.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue("")]
[XtraSerializableProperty]
[DXCategory("CardOptions")]
public string FieldCaptionFormat { get; set; }
<DefaultValue("")>
<XtraSerializableProperty>
<DXCategory("CardOptions")>
Public Property FieldCaptionFormat As String

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