[]
Returns true if the data collection supports sorting.
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
string | sortPath | The path of the data item to which the sort would be applied. |
Type | Description |
---|---|
bool |
Name | Description |
---|---|
T |
Returns true if the data collection supports sorting.
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath, SortDirection direction) where T : class?
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. |
Type | Description |
---|---|
bool |
Name | Description |
---|---|
T |
Returns true if the data collection supports sorting.
public static bool CanSort<T>(this IDataCollection<T> dataCollection, params SortDescription[] sortDescriptions) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
SortDescription[] | sortDescriptions | The sort descriptions that determine how the data would be sort. |
Type | Description |
---|---|
bool |
Name | Description |
---|---|
T |