Skip to main content
.NET 8.0+

ListEditor.SupportsDataAccessMode(CollectionSourceDataAccessMode) Method

Determines whether or not the given data access mode is supported by the ListEditor.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public virtual bool SupportsDataAccessMode(
    CollectionSourceDataAccessMode dataAccessMode
)

Parameters

Name Type Description
dataAccessMode CollectionSourceDataAccessMode

A CollectionSourceDataAccessMode enumeration value that specifies the data access mode.

Returns

Type Description
Boolean

true, if the specified mode is supported, otherwise - false.

Remarks

In custom List Editors, this method returns true for all data access modes. Override SupportsDataAccessMode in your custom List Editor to specify the supported modes.

public override Boolean SupportsDataAccessMode(CollectionSourceDataAccessMode dataAccessMode) {
    return (dataAccessMode == CollectionSourceDataAccessMode.Client);
}
See Also