[]
Returns true if the data collection supports sorting.
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath) where T : class?
Public Shared Function CanSort(Of T As Class)(dataCollection As IDataCollection(Of T), sortPath As String) As Boolean
| 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?
Public Shared Function CanSort(Of T As Class)(dataCollection As IDataCollection(Of T), sortPath As String, direction As SortDirection) As Boolean
| 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?
Public Shared Function CanSort(Of T As Class)(dataCollection As IDataCollection(Of T), ParamArray sortDescriptions As SortDescription()) As Boolean
| 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 |