Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.Data Namespace / DataSourceProvider Class / CanCount Property


In This Topic
    CanCount Property (DataSourceProvider)
    In This Topic
    Gets a value indicating whether the data-source provider can provide the item count. 
    Syntax
    'Declaration
     
    Public Overridable ReadOnly Property CanCount As Boolean
    'Usage
     
    Dim instance As DataSourceProvider
    Dim value As Boolean
     
    value = instance.CanCount
    public virtual bool CanCount {get;}

    Property Value

    true if the data-source provider can provide the item count; false otherwise. By default, false.
    Remarks
    If the count is not known, CanCount should be set to false rather than returning a a null reference (Nothing in Visual Basic) or invalid value.
    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