• PUDN用户
    了解作者
  • C#
    开发工具
  • 1.5MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 21
    下载次数
  • 2009-11-25 14:17
    上传日期
c# 下的增强datagridview,实现行拖动,内容检索,列头查询,列头排列,数据的导入导出
GridViewExtension.rar
内容介绍
<!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="A reusable component which extends the DataGrid and adds functionality for real time filtering.; Author: Robert Rohde; Section: Grid &amp; Data Controls; Chapter: Desktop Development"> <meta name="Keywords" content="Win2K, WinXP, Win2003, C#, .NET, Visual Studio, Dev, ADO.NET, Intermediate,Grid &amp; Data Controls,Desktop Development,Free source code, tutorials"> <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: DataGrid with built-in filter functionality. Free source code and programming help</title><link rel="stylesheet" type="text/css" href="gridextensions.aspx_files/CodeProject.css"><link rel="stylesheet" type="text/css" href="gridextensions.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="gridextensions.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="gridextensions.aspx_files/oncopy.js"></script> <script type="text/javascript" language="Javascript" src="gridextensions.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"><!-- function MsgVoteForm(MemberID, MsgID) { document.write("Rate this message: "); document.write("<a href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ",1)\" rel='nofollow' onclick='return false;'>"); document.write("<img height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_down.gif\" alt=\"vote 1\" border=\"0\" align=\"absmiddle\" /></a> "); for (var i=1; i<=5;i++) document.write("<a class=\"Frm_MHL\" href=\"#xx" + MsgID.toString() + "xx\" title=\"give this message a vote of " + i.toString() + "\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ", " + i.toString() + ")\" rel='nofollow' onclick='return false;'><b>" + i.toString() + "</b></a> "); document.write("<a href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ",5)\" rel='nofollow' onclick='return false;'>"); document.write("<img height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_up.gif\" alt=\"vote 5\" border=\"0\" align=\"absmiddle\" /></a> ");} function ReportMsg(userid, msgid, score) { if (confirm("Are you sure you want to report this message?") == true) return RateMsg(userid, msgid, score); else return false; } function RateMsg(memberid, msgid, score) { var req = new XMLHttpRequest(); req.onreadystatechange = function() { if (req.readyState == 4) { if ( req.status == 200 ) { var respText = req.responseText; var re = new RegExp("\<div\>([^\<]*)\</div\>", "g"); var match = re.exec(respText); voteStatus.innerHTML = "<b>" + (match)?match[1]:"An error occured" + "</b>"; } else { voteStatus.innerHTML = "<b style='color:red'>Failed!" + req.statusText + "</b>"; } } } var voteStatus = document.getElementById("MVF" + msgid); if (!voteStatus) return; voteStatus.innerHTML = "<b style='color:green'>Voting...</b>"; var strAction = "/script/Forums/Vote.aspx?js=1&fmid="+memberid.toString()+"&select="+msgid.toString()+"&score="+score.toString(); req.open("GET", strAction, true); req.send(null); 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="gridextensions.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="gridextensions.aspx_files/spit.js"></script><script type="text/javascript" src="gridextensions.aspx_files/chunks_005.js"></script><script type="text/javascript" src="gridextensions.aspx_files/chunks_011.js"></script><script type="text/javascript" src="gridextensions.aspx_files/chunks.js"></script><script type="text/javascript" src="gridextensions.aspx_files/chunks_003.js"></script><script type="te
评论
    相关推荐