Skip to main content

GridOptionsEditForm.EditFormColumnCount Property

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

[DefaultValue(3)]
[XtraSerializableProperty]
public virtual int EditFormColumnCount { get; set; }

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
GridView
.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