Skip to main content
A newer version of this page is available. .

OptionsColumnEditForm.Visible Property

Gets or sets whether an editor that corresponds to the current grid column is visible within an Edit Form.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v21.2.dll

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

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean Visible { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean value that specifies whether an editor that corresponds to the current grid column is visible within an Edit Form.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to Visible
GridColumn
.OptionsEditForm .Visible

Remarks

If the Visible property is set to DefaultBoolean.Default, an editor’s visibility within an Edit Form is controlled by the GridColumn.Visible property. If the Visible property is set to True, the editor is displayed in the Edit Form, even if the corresponding column is hidden in the GridView. If the Visible property is set to False, the corresponding editor is not displayed within an Edit Form. It is possible to assign a value to this property at design time or in code:

gridView1.Columns.ColumnByFieldName("Discount").OptionsEditForm.Visible = DevExpress.Utils.DefaultBoolean.False;

In the following picture, the “Discount” grid column’s editor is not visible within an Edit Form.

OptionsColumnEditForm_Visible

To range editors within an Edit Form, use the OptionsColumnEditForm.VisibleIndex property.

See Also