.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafDataView.Contains(Object) Method

Determines whether the XafDataView contains a specific data record.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public bool Contains(
    object obj
)
Public Function Contains(
    obj As Object
) As Boolean
public bool Contains(
    object obj
)
Public Function Contains(
    obj As Object
) As Boolean
public bool Contains(
    object obj
)
Public Function Contains(
    obj As Object
) As Boolean

Parameters

Name Type Description
obj Object

A Object which is a data record to locate in the data view.

Parameters

Name Type Description
obj Object

A Object which is a data record to locate in the data view.

Parameters

Name Type Description
obj Object

A Object which is a data record to locate in the data view.

Returns

Type Description
Boolean

true, if the record is found; otherwise, false.

Returns

Type Description
Boolean

true, if the record is found; otherwise, false.

Returns

Type Description
Boolean

true, if the record is found; otherwise, false.

Remarks

This method retrieves data from database and populates the data view's records list when this list is not yet initialized. Otherwise, the cached data record list is used. To remove the cache, use the XafDataView.Reload method.

See Also