Back to Devexpress

OptionsColumnEditForm.Visible Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-optionscolumneditform-fbdc95bb.md

latest3.5 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean Visible { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property Visible As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

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

csharp
gridView1.Columns.ColumnByFieldName("Discount").OptionsEditForm.Visible = DevExpress.Utils.DefaultBoolean.False;
vb
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.

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

See Also

VisibleIndex

OptionsColumnEditForm Class

OptionsColumnEditForm Members

DevExpress.XtraGrid.Columns Namespace