Xceed Toolkit Plus for WPF v4.6 Documentation
CanSortBy Method (DataSourceProvider)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.Data Namespace > DataSourceProvider Class : CanSortBy Method
The sort criteria to validate.
Retrieves a value indicating whether the specified sort criteria are supported by the data source.
Syntax
'Declaration
 
Protected Overridable Function CanSortBy( _
   ByVal sortOrder As IEnumerable(Of SortDescription) _
) As Boolean
'Usage
 
Dim instance As DataSourceProvider
Dim sortOrder As IEnumerable(Of SortDescription)
Dim value As Boolean
 
value = instance.CanSortBy(sortOrder)
protected virtual bool CanSortBy( 
   IEnumerable<SortDescription> sortOrder
)

Parameters

sortOrder
The sort criteria to validate.

Return Value

true if the sort criteria are supported by the data source; false otherwise. If one or more of the sort criteria are not supported, false will be returned.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataSourceProvider Class
DataSourceProvider Members