LinqDataSourceView.CanPage 属性
定义
获取一个值,该值指示与当前 LinqDataSource 控件相关联的 LinqDataSourceView 对象是否支持对检索数据进行分页。Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports paging of retrieved data.
public:
virtual property bool CanPage { bool get(); };
public override bool CanPage { get; }
member this.CanPage : bool
Public Overrides ReadOnly Property CanPage As Boolean
属性值
true.true.
注解
LinqDataSourceView即使数据显示控件不使用分页,对象也始终支持分页。The LinqDataSourceView object always supports paging even if the data presentation control does not use paging. 当 LinqDataSourceView 属性设置为时 false ,你可以手动在事件中对数据进行分页 Selecting 。When the LinqDataSourceView.AutoPage property is set to false, you can manually page the data in the Selecting event.