首页 新闻 会员 周边 捐助

Asp.net 数据绑定.

0
悬赏园豆:30 [已解决问题] 解决于 2008-04-19 11:47
&nbsp; <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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN
microdot的主页 microdot | 初学一级 | 园豆:197
提问于:2008-04-17 17:31
< >
分享
最佳答案
0
在GridView的RowDataBind里尝试做做看,动态绑定列,列按照文本框值来变化,数据为空的列绑定0
AndyFish | 小虾三级 |园豆:1575 | 2008-04-18 08:32
其他回答(1)
0
太强大了,搞不定 不妨将原始需求说出来,解决方案可能不是这个样子的
丁学 | 园豆:18730 (专家六级) | 2008-04-17 20:40
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册