<%@ Page language="c#" Codebehind="AddSumOnFooter.aspx.cs" AutoEventWireup="false" Inherits="CommonFunction.数据绑定控件.AddSumOnFooter" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AddSumOnFooter</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<h2>在页脚上添加某一列的统计值</h2>
				<asp:DataGrid id="dgAddSumOnFooter" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 48px"
					runat="server" Height="20px" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" BackColor="White"
					CellPadding="4" ToolTip="计算第一列的总和及平均值" ShowFooter="True" AutoGenerateColumns="False" Width="464px">
					<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
					<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
					<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" BackColor="#003399"></HeaderStyle>
					<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
					<Columns>
						<asp:BoundColumn DataField="LastName" HeaderText="姓名"></asp:BoundColumn>
						<asp:BoundColumn DataField="FirstName" HeaderText="姓"></asp:BoundColumn>
						<asp:BoundColumn DataField="TitleOfCourtesy" HeaderText="称谓"></asp:BoundColumn>
						<asp:BoundColumn DataField="Extension" HeaderText="示例数字"></asp:BoundColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
				</asp:DataGrid></FONT>
		</form>
	</body>
</HTML>
