Επεξεργασία

Κοινή χρήση μέσω


LinqDataSourceView.CanRetrieveTotalRowCount Property

Definition

Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports retrieving the total number of data rows, in addition to retrieving the data.

public:
 virtual property bool CanRetrieveTotalRowCount { bool get(); };
public override bool CanRetrieveTotalRowCount { get; }
member this.CanRetrieveTotalRowCount : bool
Public Overrides ReadOnly Property CanRetrieveTotalRowCount As Boolean

Property Value

true.

Remarks

Data-bound controls use the total number of rows that can be paged to determine how to render paging controls. For example, this value is used to determine how many numeric pager buttons to render in a GridView control pager. If the LinqDataSourceView.AutoPage property is set to false, you must manually set the total row count in the Selecting event.

Applies to