Skip to main content
All docs
V24.1

PropertyAllowEventArgs.Owner Property

Gets the control or UI element whose layout settings are being serialized or deserialized.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public object Owner { get; }

Property Value

Type Description
Object

The control or UI element whose layout settings are being serialized or deserialized (for example GridControl, TreeList).

Remarks

The following example demonstrates how to avoid serializing certain settings of TreeList columns:

treeList.PropertySerializing += (s, e) => {
    if(e.Owner is TreeListColumn && e.PropertyName == "Caption")
        e.Allow = DefaultBoolean.False;
};
See Also