Click here to Skip to main content
15,892,737 members
Articles / Web Development / ASP.NET

Sortable GridView using jQuery's TableSorter

Rate me:
Please Sign up or sign in to vote.
4.82/5 (12 votes)
8 Oct 2008CPOL3 min read 131.6K   5K   63  
A client-side sortable GridView using jQuery's plugin table sorter.
/* tables */
table.tablesorterBlue {
	font-family:arial;
	background-color: #CDCDCD;
	margin:10px 0pt 15px;
	font-size: 8pt;
	width: 100%;
	text-align: left;
}
table.tablesorterBlue thead tr th, table.tablesorterBlue tfoot tr th {
	background-color: #e6EEEE;
	border: 1px solid #FFF;
	font-size: 8pt;
	padding: 4px;
}
table.tablesorterBlue thead tr .header {
	background-image: url(bg.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
table.tablesorterBlue tbody td {
	color: #3D3D3D;
	padding: 4px;
	background-color: #FFF;
	vertical-align: top;
}
table.tablesorterBlue tbody tr.odd td {
	background-color:#F0F0F6;
}
table.tablesorterBlue thead tr .headerSortUp {
	background-image: url(asc.gif);
}
table.tablesorterBlue thead tr .headerSortDown {
	background-image: url(desc.gif);
}
table.tablesorterBlue thead tr .headerSortDown, table.tablesorterBlue thead tr .headerSortUp {
background-color: #8dbdd8;
}


body.tablesorterBlue 
{
	font-family:arial;
	background-color: #CDCDCD;
	margin:20px 20pt 20px 20px;
	font-size: 10pt;
	width: 100%;
	text-align: left;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer GMS Ltd.
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions