[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanSort

CanSort Method

CanSort<T>(IDataCollection<T>, string)

Returns true if the data collection supports sorting.

Declaration
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

string sortPath

The path of the data item to which the sort would be applied.

Returns
Type Description
bool
Type Parameters
Name Description
T

CanSort<T>(IDataCollection<T>, string, SortDirection)

Returns true if the data collection supports sorting.

Declaration
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath, SortDirection direction) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

string sortPath

The path of the data item to which the sort would be applied.

SortDirection direction

Whether the sort is ascending or descending.

Returns
Type Description
bool
Type Parameters
Name Description
T

CanSort<T>(IDataCollection<T>, params SortDescription[])

Returns true if the data collection supports sorting.

Declaration
public static bool CanSort<T>(this IDataCollection<T> dataCollection, params SortDescription[] sortDescriptions) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

SortDescription[] sortDescriptions

The sort descriptions that determine how the data would be sort.

Returns
Type Description
bool
Type Parameters
Name Description
T