现在的位置: 首页 > 综合 > 正文

分页的方法

2013年06月27日 ⁄ 综合 ⁄ 共 451字 ⁄ 字号 评论关闭
http://data.socut.com/?go=video-swf1

http://www.cnblogs.com/lxinxuan/archive/2007/04/19/719866.html

http://www.xgamesdev.com/bbs/showtopic-339.aspx

public int Fill(   DataSet dataSet,   int startRecord,   int maxRecords,   string srcTable);

 

 

参数

dataSet
要用记录和架构(如果必要)填充的 DataSet
startRecord
从其开始的从零开始的记录号。
maxRecords
要检索的最大记录数。
srcTable
用于表映射的源表的名称。

返回值

已在 DataSet 中成功添加或刷新的行数。这不包括受不返回行的语句影响的行。

DataAdapter会将其SelectCommand得到的结果集中得到从startRecord记录开始的maxrecords条数据,实际数据小于maxRecords不会引发错误.

抱歉!评论已关闭.