GridOptionsEditForm.EditFormColumnCount Property

Gets or sets the total number of layout columns within an Edit Form.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(3)]
[XtraSerializableProperty]
public virtual int EditFormColumnCount { get; set; }
<DefaultValue(3)>
<XtraSerializableProperty>
Public Overridable Property EditFormColumnCount As Integer

Property Value

Type Default Description
Int32

3

The number of layout columns within an Edit Form.

Property Paths

You can access this nested property as listed below:

Object Type Path to EditFormColumnCount
AdvBandedGridView
.OptionsEditForm.EditFormColumnCount
BandedGridView
.OptionsEditForm.EditFormColumnCount
GridView
.OptionsEditForm.EditFormColumnCount
TileView
.OptionsEditForm.EditFormColumnCount

Remarks

The default Edit Form layout is created automatically, based on the options provided by the GridView.OptionsEditForm and GridColumn.OptionsEditForm properties. The Edit Form's space is divided into layout columns and rows. The total number of layout columns within an Edit Form is specified by the EditFormColumnCount property. By default, it's set to three.

Each grid column is represented within an Edit Form by an appropriate inplace editor and caption. Each editor occupies a specific default number of layout columns and rows that depend on an editor type. The number of layout columns and layout rows an editor spans can be customized via the OptionsColumnEditForm.ColumnSpan and OptionsColumnEditForm.RowSpan property. See the Modify and Validate Cell Values topic for more information.

The following pictures show an Edit Form when the EditFormColumnCount property is set to two and four respectively.

GridOptionsBehavior_EditingMode_EditForm_TwoColumns

GridOptionsBehavior_EditingMode_EditForm_FourColumns

See Also