<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head id="ctl00_Header">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Description" content="Free source code and tutorials for Software developers and Architects.">
<meta name="Keywords" content="C++, C#, VB.NET, ASP.NET, .NET, AJAX, Web 2.0">
<meta name="Author" content="The Code Project">
<meta name="Rating" content="General">
<meta name="Robots" content="index, follow">
<meta name="Revisit-After" content="7 days">
<link rel="alternate" type="application/rss+xml" title="CodeProject Lounge Postings" href="http://www.codeproject.com/webservices/LoungeRSS.aspx">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - All topics" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=1">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - MFC / C++" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=2">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - C#" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=3">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - ASP.NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=4">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - .NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=5">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - VB.NET" href="http://www.codeproject.com/webservices/articlerss.aspx?cat=6">
<link rel="search" type="application/opensearchdescription+xml" title="CodeProject" href="http://www.codeproject.com/info/OpenSearch.xml"><title>CodeProject: Drag and drop gridview item for ordering in ASP.Net 2.0. Free source code and programming articles</title><link rel="stylesheet" type="text/css" href="DragAndDropGridView.aspx_files/CodeProject.css"><link rel="stylesheet" type="text/css" href="DragAndDropGridView.aspx_files/ForumClassic.css">
<!-- base -->
<script type="text/javascript" language="javascript">
if(top!=self)top.location.href=location.href;
if(typeof(DemoUrl)!="undefined")document.write('<meta http-equiv="refresh" content="1;url='+DemoUrl+'" />');
function SetAsAvailable()
{
var articleId = document.getElementById("ArticleId");
if(articleId)
{
var url = '/script/Articles/UpdateArticleStatus.aspx'
window.location.href = url + "?aid=" + articleId.value + "&rp=" + location.href;
}
}
</script>
<script src="DragAndDropGridView.aspx_files/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-1735123-1";
urchinTracker();
</script>
<script type="text/javascript" language="Javascript" src="DragAndDropGridView.aspx_files/oncopy.js"></script>
<script type="text/javascript" language="Javascript" src="DragAndDropGridView.aspx_files/addto.js"></script>
<script type="text/javascript" language="Javascript"><!--
function ToggleMenu(itemName)
{
var elm = document.getElementById(itemName);
var i,others = document.getElementById('SectionMenu');
for(i=0; i < others.childNodes.length; i++)
{
var other = others.childNodes[i];
if ((other.className == 'MenuSectionBlock') && (other != elm))
other.style.display='none';
}
if (elm.style.display == 'block') elm.style.display='none';
else elm.style.display='block';
return false;
}
--></script>
<script type="text/javascript" language="Javascript"><!--
var Selected = "-1";
function SwitchMessage(e, msgId)
{
var elmref;
if(Selected!=""){
elmref=eval("document.getElementById('" + Selected + "_h1')");
if(elmref) elmref.style.display = 'none';
elmref=eval("document.getElementById('" + Selected + "_h0')");
if(elmref) elmref.className = elmref.className.replace("Sel", "UnSel");
}
if(Selected!=msgId.toString()){
Selected=msgId.toString();
elmref=eval("document.getElementById('" + Selected + "_h1')");
if(elmref){
if(elmref.style.display=='none') elmref.style.display='';
else elmref.style.display = 'none';
}
elmref=eval("document.getElementById('" + Selected + "_h0')");
if (elmref)
elmref.className = elmref.className.replace("UnSel", "Sel");
}
else
Selected="";
if (!e&&window.event)e=window.event;
if(Selected!=""&&e&&document.getElementById(Selected + "_h1").style.display!="none"){
elmref=document.getElementById(Selected + "_h0");
var adj=(getRealPos(elmref,"Top")+elmref.offsetHeight/2)-(document.body.scrollTop+40/*e.clientY*/);
document.body.scrollTop += adj;
EnsureMessageVisible(Selected, true);
}
return false;
}
function SwitchThisMessage(e){ return SwitchMessage(e, this.name); }
--></script>
<script type="text/javascript" language="Javascript" src="DragAndDropGridView.aspx_files/ShortCuts.js"></script>
<link rel="icon" href="http://www.codeproject.com/favicon.ico" type="image/ico">
<link rel="shortcut icon" href="http://www.codeproject.com/favicon.ico" type="image/ico"></head><body style="background-color: rgb(255, 255, 255);"><script type="text/javascript" src="DragAndDropGridView.aspx_files/al.htm"></script><script type="text/javascript" src="DragAndDropGridView.aspx_files/func_200712191457.js"></script><script type="text/javascript" src="DragAndDropGridView.aspx_files/door.js"></script><script type="text/javascript" src="DragAndDropGridView.aspx_files/tsc.js"></script>
<table id="ctl00_AT" border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top">
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td class="HeaderLogo"><a href="http://www.codeproject.com/"><img alt="Home" src="DragAndDropGridView.aspx_files/codeproject225x90.gif" border="0" height="90" width="225"></a></td>
<td class="HeaderBanner" align="right" width="100%">
<script language="javascript">document.write("<a href=\"http://www.codeproject.com/Redir.aspx?adid=4805&way=ban\" target=\"_blank\"><img src=\"http://www.codeproject.com/script/Ann/ServeImg.aspx?File=%2fscript%2fadmentor%2fimages%2fxoreax_808_leader_728x90.gif&C=False&id=4805\" alt=\"\" border=\"0\" width=\"728\" height=\"90\"></a>");</script><a href="http://www.codeproject.com/Redir.aspx?adid=4805&way=ban" target="_blank"><img src="DragAndDropGridView.aspx_files/ServeImg.htm" alt="" border="0" height="90" width="728"></a>
</td>
</tr>
<tr>
<td colspan="2">
<table class="MemberNavBar" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="SmallText" style="font-weight: bold;">Millions of members and growing! (4,559 online);</td>
<td align="right">
<div id="ctl00_MemberMenu_LoggedOnOptions" class="MemberNavBarText">
<a id="ctl00_MemberMenu_MyProfile" href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=4785773">ivanx</a> |
<a id="ctl00_MemberMenu_MySettings" href="http://www.codeproject.com/script/Membership/Modify.aspx"><img src="DragAndDropGridView.aspx_files/tools.gif" align="absmiddle" border="0" height="16" width="16"> <b>My Settings</b></a> |
<a id="ctl00_MemberMenu_MyBookmarks" href="http://www.codeproject.com/script/Bookmarks/List.aspx?obtid=2"><img src="DragAndDropGridView.aspx_files/fave.gif" align="absmiddle" border="0" height="16" width="16"> My Bookmarks</a> |
<a id="ctl00_MemberMenu_MyArticles" href="http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4785773">My Articles</a> |
<a id="ctl00_MemberMenu_Signout" href="http://www.codeproject.com/script/Membership/LogOff.aspx?rp=%2fKB%2fwebforms%2fDragAndDropGridView.aspx">Sign out</a>
</div>
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan="2">
<table class="SiteNavBar" id="tblSiteToolba
- 1
- 2
前往页