GridColumn.OptionsEditForm Property
Provides access to the settings of the editor that corresponds to the current column within an Edit Form.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
[DXCategory("Options")]
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
public OptionsColumnEditForm OptionsEditForm { get; }
Property Value
Type | Description |
---|---|
OptionsColumnEditForm | The settings of the editor that corresponds to the current column within an Edit Form. |
Remarks
The OptionsColumnEditForm class contains the settings of the editor that corresponds to the current column within the Edit Form. You can specify the editor’s caption, location, size, layout, and visibility.
Example
The following example demonstrates how to customize the layout of the Edit Form.
using DevExpress.Utils;
using DevExpress.XtraGrid.EditForm;
using DevExpress.XtraGrid.Views.Grid;
// Enables the Edit Form.
gridView1.OptionsBehavior.EditingMode = GridEditingMode.EditFormInplace;
// Specifies the visibility of column editors in the Edit Form.
colFirstName.OptionsEditForm.Visible = DefaultBoolean.True;
colLastName.OptionsEditForm.Visible = DefaultBoolean.True;
colNotes.OptionsEditForm.Visible = DefaultBoolean.True;
colFullName.OptionsEditForm.Visible = DefaultBoolean.False;
// Specifies the Notes editor's position among other editors.
colNotes.OptionsEditForm.VisibleIndex = 2;
// Specifies the Notes editor's 'size'.
colNotes.OptionsEditForm.ColumnSpan = 2;
colNotes.OptionsEditForm.RowSpan = 2;
colNotes.OptionsEditForm.UseEditorColRowSpan = false;
// Specifies the location of the caption.
colNotes.OptionsEditForm.CaptionLocation = EditFormColumnCaptionLocation.Near;
See Also