Back to Devexpress

GridOptionsEditForm.EditFormColumnCount Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionseditform-91552ac5.md

latest3.6 KB
Original Source

GridOptionsEditForm.EditFormColumnCount Property

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

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
Int323

The number of layout columns within an Edit Form.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

See Also

StartNewRow

RowSpan

ColumnSpan

GridOptionsEditForm Class

GridOptionsEditForm Members

DevExpress.XtraGrid.Views.Grid Namespace