Back to Devexpress

DataLayoutControl.AllowGeneratingCollectionProperties Property

windowsforms-devexpress-dot-xtradatalayout-dot-datalayoutcontrol-deb42530.md

latest3.2 KB
Original Source

DataLayoutControl.AllowGeneratingCollectionProperties Property

Gets or sets whether layout items that correspond to IList properties will be added to the generated layout. By default, these layout items will contain embedded GridControls to display and edit IList object contents.

Namespace : DevExpress.XtraDataLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean AllowGeneratingCollectionProperties { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Behavior")>
Public Property AllowGeneratingCollectionProperties As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

True to generate layout items for IList properties; Default or False to exclude these properties from the generated layout.

|

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

|

Remarks

When the AllowGeneratingCollectionProperties property is set to DefaultBoolean.Default or DefaultBoolean.False , the generation of layout items that correspond to IList properties is disabled. When this property is set to DefaultBoolean.True , IList properties will be presented in the layout by items with embedded GridControls (by default).

Note

For a bound object’s properties of the Array and IEnumerable types, layout items are added to the layout regardless of the DataLayoutControl.AllowGeneratingCollectionProperties option. These layout items contain embedded GridControls by default.

See Displaying Collection Properties to learn more.

See Also

AllowGeneratingNestedGroups

FieldRetrieving

Displaying Collection Properties

DataLayoutControl Class

DataLayoutControl Members

DevExpress.XtraDataLayout Namespace