PagedDataSource 类
封装数据绑定控件(如 DataGrid、GridView、DetailsView 和 FormView)的与分页相关的属性,以允许该控件执行分页操作。无法继承此类。
**命名空间:**System.Web.UI.WebControls
**程序集:**System.Web(在 system.web.dll 中)
语法
声明
Public NotInheritable Class PagedDataSource
Implements ICollection, IEnumerable, ITypedList
用法
Dim instance As PagedDataSource
public sealed class PagedDataSource : ICollection, IEnumerable, ITypedList
public ref class PagedDataSource sealed : ICollection, IEnumerable, ITypedList
public final class PagedDataSource implements ICollection, IEnumerable,
ITypedList
public final class PagedDataSource implements ICollection, IEnumerable,
ITypedList
备注
PagedDataSource 类封装那些允许数据源控件(如 DataGrid、GridView、DetailsView 和 FormView)执行分页操作的属性。如果控件开发人员需对自定义数据绑定控件提供分页支持,即可使用此类。
此类使用最适用的方法,以枚举属于当前页的数据。如果基础数据源支持索引访问(如 System.Array 和 System.Collections.IList),则此类使用索引访问。否则,此类使用由 GetEnumerator 方法创建的枚举数。
有关 PagedDataSource 的实例的初始属性值列表,请参见 PagedDataSource 构造函数。
.NET Framework 安全性
- AspNetHostingPermission 用于在宿主环境中进行操作。要求值:LinkDemand;权限值:Minimal。
继承层次结构
System.Object
System.Web.UI.WebControls.PagedDataSource
线程安全
此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。
平台
Windows 98、Windows 2000 SP4、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
版本信息
.NET Framework
受以下版本支持:2.0、1.1、1.0
请参见
参考
PagedDataSource 成员
System.Web.UI.WebControls 命名空间
DataGrid 类
DetailsView 类
FormView 类
GridView 类
System.Collections.ICollection
System.Array
System.Collections.IList
System.Collections.IEnumerable