悬赏园豆:30
[已解决问题]
解决于 2008-04-19 11:47
<P>Asp.Net 2.0 + Access</P>
<P style="MARGIN-LEFT: 19.5pt; TEXT-INDENT: -19.5pt; tab-stops: list 19.5pt">1.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN><SPAN style="FONT-FAMILY: 宋体">新建一</SPAN>Access<SPAN style="FONT-FAMILY: 宋体">数据库</SPAN> test.mdb, <SPAN style="FONT-FAMILY: 宋体">表名</SPAN>:test <SPAN style="FONT-FAMILY: 宋体">有</SPAN>10<SPAN style="FONT-FAMILY: 宋体">个字段</SPAN> p1-p10 <SPAN style="FONT-FAMILY: 宋体">长整型</SPAN>. <SPAN style="FONT-FAMILY: 宋体">加入</SPAN>20<SPAN style="FONT-FAMILY: 宋体">条测试数据</SPAN>.<BR><IMG alt="" src="http://www.cnblogs.com/images/cnblogs_com/freewind22/test.jpg" border=0 mce_src="http://www.cnblogs.com/images/cnblogs_com/freewind22/test.jpg"><BR></P>
<P style="MARGIN-LEFT: 19.5pt; TEXT-INDENT: -19.5pt; tab-stops: list 19.5pt">2.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN><SPAN style="FONT-FAMILY: 宋体">有</SPAN>2<SPAN style="FONT-FAMILY: 宋体">个</SPAN>GridView, <SPAN style="FONT-FAMILY: 宋体">蓝色</SPAN>(<SPAN style="FONT-FAMILY: 宋体">表</SPAN>1), <SPAN style="FONT-FAMILY: 宋体">绿色</SPAN>(<SPAN style="FONT-FAMILY: 宋体">表</SPAN>2), <SPAN style="FONT-FAMILY: 宋体">程序开始运行是</SPAN>,2<SPAN style="FONT-FAMILY: 宋体">个表数据相同</SPAN>.</P>
<P style="MARGIN-LEFT: 19.5pt; TEXT-INDENT: -19.5pt; tab-stops: list 19.5pt">3.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN>2<SPAN style="FONT-FAMILY: 宋体">个表的数据都可以编辑</SPAN>,<SPAN style="FONT-FAMILY: 宋体">保存</SPAN>,<SPAN style="FONT-FAMILY: 宋体">分页显示</SPAN>.</P>
<P style="MARGIN-LEFT: 19.5pt; TEXT-INDENT: -19.5pt; tab-stops: list 19.5pt">4.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN><SPAN style="FONT-FAMILY: 宋体">在文本框输入</SPAN>-10<SPAN style="FONT-FAMILY: 宋体">到</SPAN>10<SPAN style="FONT-FAMILY: 宋体">到可以移动表</SPAN>2<SPAN style="FONT-FAMILY: 宋体">的数据</SPAN>.</P>
<P style="MARGIN-LEFT: 19.5pt"><SPAN style="FONT-FAMILY: 宋体">例</SPAN>: <SPAN style="FONT-FAMILY: 宋体">输入</SPAN>3 <SPAN style="FONT-FAMILY: 宋体">则表示</SPAN> <SPAN style="FONT-FAMILY: 宋体">表</SPAN>2<SPAN style="FONT-FAMILY: 宋体">的数据向左移动</SPAN>3<SPAN style="FONT-FAMILY: 宋体">位</SPAN>,<SPAN style="FONT-FAMILY: 宋体">右边补</SPAN>0. <SPAN style="FONT-FAMILY: 宋体">即</SPAN>p1=p4,p2=p5,…p8=p9=p10=0</P>
<P style="MARGIN-LEFT: 19.5pt"><SPAN style="FONT-FAMILY: 宋体">负数表示向右移动</SPAN>,<SPAN style="FONT-FAMILY: 宋体">左边补</SPAN>0.</P>
<P style="MARGIN-LEFT: 19.5pt"><SPAN style="FONT-FAMILY: 宋体">如先左移再右移数据要恢复</SPAN>, <SPAN style="FONT-FAMILY: 宋体">移动后选择分页时保留移动状态</SPAN>.</P>
<P style="MARGIN-LEFT: 19.5pt; TEXT-INDENT: -19.5pt; tab-stops: list 19.5pt">5.<SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN><SPAN