property UnboundHandler.ItemsCount (Source as Object) as Long
Gets the number of items.

TypeDescription
Source as Object The control that requires the number of items
Long A Long expression that specifies the number of items in unbound/virtual mode.
The ItemsCount property specifies the number of items in unbound/virtual mode.

The following VB sample, shows how ItemsCount property should be implemented:

Private Property Get IUnboundHandler_ItemsCount(ByVal Source As Object) As Long
    IUnboundHandler_ItemsCount = 1000000
End Property

The following VB/NET sample, shows how ItemsCount property should be implemented:

Public ReadOnly Property ItemsCount(ByVal Source As Object) As Integer Implements EXGRIDLib.IUnboundHandler.ItemsCount
    Get
        ItemsCount = 10000000
    End Get
End Property

The following C# sample, shows how ItemsCount property should be implemented:

public int get_ItemsCount(object Source)
{
    return 1000000;
}

The following VFP sample , shows how ItemsCount property should be implemented:

function IUnboundHandler_get_ItemsCount(Source)	
	return 1000000
endfunc