System.Web.UI.WebControls.ObjectDataSource.SelectCountMethod Property

Gets or sets the name of the method or function that the System.Web.UI.WebControls.ObjectDataSource control invokes to retrieve a row count.


public string SelectCountMethod { set; get; }


Documentation for this section has not yet been entered.


The ObjectDataSource.SelectCountMethod property identifies a business object method that is used to retrieve a total row count, to support data source paging. The ObjectDataSource.SelectCountMethod property is evaluated only if the ObjectDataSource.EnablePaging property is set to true.

The ObjectDataSource.SelectCountMethod property delegates to the ObjectDataSourceView.SelectCountMethod property of the System.Web.UI.WebControls.ObjectDataSourceView object that is associated with the System.Web.UI.WebControls.ObjectDataSource control. For information about how paging is supported by the System.Web.UI.WebControls.ObjectDataSource control, see ObjectDataSource.EnablePaging.


Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0