Gets or sets a value indicating whether the data source control supports paging through the set of data that it retrieves.
Documentation for this section has not yet been entered.
Paging by the System.Web.UI.WebControls.ObjectDataSourceView control is handled by setting the ObjectDataSourceView.EnablePaging, ObjectDataSourceView.StartRowIndexParameterName, ObjectDataSourceView.MaximumRowsParameterName, and ObjectDataSourceView.SelectCountMethod properties of the System.Web.UI.WebControls.ObjectDataSourceView and defining a Select method in the business object with the proper parameters. When the ObjectDataSourceView.EnablePaging property is set to true, the ObjectDataSourceView.SelectParameters collection includes two additional parameters for the first row requested and the number of rows requested. These two parameters are named as defined by the ObjectDataSourceView.StartRowIndexParameterName and ObjectDataSourceView.MaximumRowsParameterName properties. The Select method should return the requested number of rows starting at the specified index. Because the data might not divide evenly by the page size, the last page might contain fewer rows. Thus, the number of rows requested is actually the maximum number of rows that are returned.
The ObjectDataSourceView.CanRetrieveTotalRowCount property is checked during a call to the ObjectDataSourceView.ExecuteSelect(System.Web.UI.DataSourceSelectArguments) method to ensure that the data source control supports all capabilities requested by setting the various System.Web.UI.DataSourceSelectArguments properties.
When paging is enabled on the associated data-bound control, the data-bound control calls the Select method with the start index and number of rows that are required. Additionally, if the ObjectDataSourceView.SelectCountMethod property is set, the data-bound control calls the method before rendering the pager controls. For example, if a System.Web.UI.WebControls.GridView control has paging enabled with a page size of 5, and the ObjectDataSourceView.SelectCountMethod method returns 20, only 4 pages are displayed in the pager.
The value of the ObjectDataSourceView.EnablePaging property is stored in view state.