Back to Devexpress

GridColumnEditFormSettings.CaptionLocation Property

aspnet-devexpress-dot-web-dot-gridcolumneditformsettings.md

latest2.7 KB
Original Source

GridColumnEditFormSettings.CaptionLocation Property

Gets or sets the location of the edit cell’s caption.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
ASPxColumnCaptionLocationDefault

An ASPxColumnCaptionLocation enumeration value that specifies the caption’s location.

|

Available values:

NameDescription
Default

The caption is displayed next to the editor.

| | Near |

The caption is displayed next to the editor.

| | Top |

The caption is located along the top of the edit cell.

| | None |

The caption is hidden.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CaptionLocation
GridViewDataColumn

.EditFormSettings .CaptionLocation

|

Remarks

An Edit Cell displays the name of the column to which it corresponds. Use the CaptionLocation property to specify the caption’s location.

If the CaptionLocation property is set to Default and the GridColumnEditFormSettings.RowSpan property is set to 1 , the caption is displayed next to the editor. Otherwise, if the GridColumnEditFormSettings.RowSpan is set to 2 or greater, the caption is located along the top of the edit cell.

See Also

Grid View

GridColumnEditFormSettings Class

GridColumnEditFormSettings Members

DevExpress.Web Namespace