Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

DataSourceCapabilities Enumeration

Provides a way to request processing beyond record retrieval for a data retrieval operation of a data source control.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
[FlagsAttribute] 
public enum DataSourceCapabilities
/** @attribute FlagsAttribute() */ 
public enum DataSourceCapabilities
FlagsAttribute 
public enum DataSourceCapabilities
 Member nameDescription
NoneRepresents no paging, sorting, or total row count retrieval capabilities. 
PageRepresents the capability to page through the rows returned by an ExecuteSelect operation. 
RetrieveTotalRowCountRepresents the capability to retrieve a total row count of data, which corresponds to using the DataSourceOperation.SelectCount value.  
SortRepresents the capability to sort through the rows returned by an ExecuteSelect operation. 

Data source controls use the DataSourceCapabilities enumeration in conjunction with the DataSourceSelectArguments class to request paging, sorting, or other select-specific capabilities when performing a data retrieval operation. The requested capabilities are checked against the actual capabilities of the data source control during the data retrieval operation, and if they do not match an exception is raised.

This enumeration supports the FlagsAttribute attribute, which enables you to use more than one member at a time.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.