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

OptionsColumnEditForm.CaptionLocation Property

Gets or sets the caption location of an editor that represents the current grid column within an Edit Form.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DefaultValue(EditFormColumnCaptionLocation.Default)]
[XtraSerializableProperty]
public virtual EditFormColumnCaptionLocation CaptionLocation { get; set; }

#Property Value

Type Default Description
EditFormColumnCaptionLocation Default

The caption location of an editor that represents the current grid column.

Available values:

Name Description
Default

Specifies the same location as the EditFormColumnCaptionLocation.Near value.

Near

A caption is located on the left side of an editor in a left-to-right layout. In a right-to-left layout, the near position is right.

Top

A caption is located above the editor.

None

A caption is not displayed.

#Property Paths

You can access this nested property as listed below:

Object Type Path to CaptionLocation
GridColumn
.OptionsEditForm .CaptionLocation

#Remarks

You can set a value from the EditFormColumnCaptionLocation enumeration to the CaptionLocation property to specify the editor’s caption location. The EditFormColumnCaptionLocation enumeration provides you with the following values:

  • Default and Near — A caption is located on the left side of an editor in a left-to-right layout. In a right-to-left layout, the near position is right.
  • Top — A caption is located above the editor.
  • None — A caption is not displayed.

If you use the Top value, ensure that an editor spans a minimum of two layout rows within an Edit Form. To specify the number of layout rows an editor spans, use the OptionsColumnEditForm.RowSpan property.

See Also