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

Declaration

public virtual bool SupportsDataAccessMode(
    CollectionSourceDataAccessMode dataAccessMode
)
Public Overridable Function SupportsDataAccessMode(
    dataAccessMode As CollectionSourceDataAccessMode
) As Boolean

Parameters

Type Name Description
CollectionSourceDataAccessMode dataAccessMode

A CollectionSourceDataAccessMode enumeration value that specifies the data access mode.

Returns

Type Description
Boolean

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

Remarks

By default, this method returns true for the Client and Server modes, and false - for the InstantFeedback and DataView 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