GridView上下移动行并把值保存到数据库怎么做啊!急求ing?
GridView上下移动行并把值保存到数据库怎么做啊!急求ing? 给做个例子100分奉上!小弟新手!多谢了!
------解决方案--------------------上下移动是排序还是单行上下的互换?
------解决方案--------------------Refer:
http://www.cnblogs.com/insus/archive/2013/01/11/2855517.html
------解决方案--------------------排序的话,如果是Form,有一个AllowUserToOrder属性,Web的话,有一个AllowSorting属性,都是自动排序的
------解决方案--------------------<style type="text/css">
.style1 {
width: 18%;
}
.style2 {
width: 42%;
}
.mod_piclist .menu {
overflow:hidden;
background-color:#B4A6FF;
font-size:12px;
padding:5px;
height:25px;
}
.mod_piclist .menu ul, .mod_piclist .menu li {
margin:0;
padding:0;
list-style-type:none;
}
.mod_piclist .menu li {
float:left;
width:60px;
height:20px;
text-align:left;
padding-top:5px;
background-repeat:no-repeat;
background-position:center left;
padding-left:20px;
cursor:pointer;
}
.imglist ul, .imglist li {
margin:0;
padding:0;
list-style-type:none;
}
.imglist ul {
border-bottom:1px #999 dotted;
height:25px;
font-size:12px;
cursor:pointer;
}
.imglist li {
float:left;
text-align:left;
margin-left:10px;
padding-top:5px;
}
#lightwindow_container {
border:1px #000 solid;
background-color:#CCC;
}
.selUl {
background-color:#D9D2FB;
}
</style>
<div class="menu">
<ul>
<li style="background-image:url(/sysImages/guestbook/images/url.gif)"><A class="lightwindow page-options"
href="/configuration/system/selectImgList.aspx?imgGroupID=<%= imgGroupID %>"
params="lightwindow_type=external,lightwindow_width=800,lightwindow_height=400">添加图片</A> </li>
<li style="background-image:url(/sysImages/guestbook/images/reply.gif)"><A class="lightwindow page-options"
href="img_edit.aspx?imgID=0"
params="lightwindow_type=external,lightwindow_width=800,lightwindow_height=300" id="a_edit">编辑图片</A></li>
<li style="background-image:url(/sysImages/guestbook/images/friend.gif)">
<a href="javascript:SetOrderID()">往上排列</a></li>
&n