This documentation is archived and is not being maintained.

PagedDataSource.Count Property

Gets the number of items to be used from the data source.

[Visual Basic]
Public Overridable ReadOnly Property Count As Integer  Implements _
   ICollection.Count
[C#]
public virtual int Count {get;}
[C++]
public: __property virtual int get_Count();
[JScript]
public function get Count() : int;

Property Value

The number of items to be used from the data source.

Implements

ICollection.Count

Remarks

Use the Count property to determine the number of items to be used from the data source. The value returned depends on whether paging is enabled and whether custom paging is used:

Note   If the DataSource property contains a null reference (Nothing in Visual Basic), 0 is returned.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

PagedDataSource Class | PagedDataSource Members | System.Web.UI.WebControls Namespace | IsPagingEnabled | DataSourceCount | IsCustomPagingEnabled | IsLastPage | PageSize | FirstIndexInPage | DataSource

Show: