Back to Devexpress

OptionsColumnEditForm.CaptionLocation Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumneditform-8998227e.md

latest3.6 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(EditFormColumnCaptionLocation.Default)]
[XtraSerializableProperty]
public virtual EditFormColumnCaptionLocation CaptionLocation { get; set; }
vb
<DefaultValue(EditFormColumnCaptionLocation.Default)>
<XtraSerializableProperty>
Public Overridable Property CaptionLocation As EditFormColumnCaptionLocation

Property Value

TypeDefaultDescription
EditFormColumnCaptionLocationDefault

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

|

Available values:

NameDescription
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 TypePath 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

EditFormColumnCaptionLocation

Caption

RowSpan

OptionsColumnEditForm Class

OptionsColumnEditForm Members

DevExpress.XtraGrid.Columns Namespace