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

GroupingView

Rate me:
Please Sign up or sign in to vote.
4.88/5 (21 votes)
16 Jul 2008CPOL11 min read 111K   4.1K   123  
A templated, data-bound ASP.NET 2.0 control that groups data according to a field in the source, with support for aggregations.
#header
{
	width: 100%;
	background-color: #EFEFEF;
	font-size: 140%;
	font-weight: bold;
	padding-left: 10px;
	padding-top: 4px;
	padding-bottom: 4px;
}

#menu
{
	float: left; width: 180px;
	background-color: #EFEFEF;
	padding-top: 30px;
	font-size: 90%;
}
#menu a {display: block; width: 100%; color: darkBlue; text-decoration: none; 
         padding: 4px; margin-left: 8px; margin-top: 2px; margin-bottom: 2px;}
#menu a:hover {color: darkOrange; background-color: White;}

#menu a.on {color: red; background-color: White;}


#contentTitle
{
	float: left; width: 700px;
	font-size: 105%;	
	font-weight: bold;
	padding-top: 20px; margin-left: 30px;
	color: darkBlue;
}

#contentExample
{
	float: left; width: 350px;
	background-color: white;
	margin-left: 30px;
	padding-top: 20px;
	padding-right: 6px;
	border-right: 1px solid #EAEAEA;
}

#contentDescription
{
	float: left; width: 350px;
	background-color: white;
	margin-left: 10px;
	padding-left: 20px;
	padding-top: 20px;
	font-size: 90%;
	font-family: Arial,sans-serif;
}

body
{
	font-family: Tahoma,Verdana,Arial,sans-serif;
}

code
{
	color: Maroon;
}

.CommandExample a {	text-decoration: none; color: blue;	}
.CommandExample a:hover {text-decoration: underline; color: darkOrange;}

.hierarchical ul {margin-bottom: 8px;}
.hierarchical ul li {font-size: 110%; font-weight: bold; color: ForestGreen;}
.hierarchical ul li ul li {font-size: 90%; font-weight: normal; color: DarkBlue;}
.hierarchical ul li ul li ul li {font-size: 80%; font-weight: normal; color: black; font-style: italic;}

.homeText {font-size: 90%; font-family: Arial, Sans-Serif;}
.homeText em {color: darkBlue; font-family: Verdana; font-style: normal;}

.itemExample {font-size: 10pt;}
.itemExample ul li {margin-bottom: 8px; font-size: 9pt;}

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
University of Nevada, Las Vegas
United States United States
With a background in education, music, application development, institutional research, data governance, and business intelligence, I work for the University of Nevada, Las Vegas helping to derive useful information from institutional data. It's an old picture, but one of my favorites.

Comments and Discussions