<%@ Page language="c#" Codebehind="DataGridCustomPage.aspx.cs" AutoEventWireup="false" Inherits="CommonFunction.DataGridCustomPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>DataGridCustomPage</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">
			<h2>DataGrid自定义分页的例子</h2>
			<asp:datagrid id="dgCustomPage" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 48px"
				runat="server" Width="376px" AutoGenerateColumns="False" CellPadding="4" BackColor="White"
				BorderWidth="1px" BorderStyle="None" BorderColor="#3366CC" Height="20px" AllowPaging="True"
				AllowCustomPaging="True" PageSize="5">
				<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="City" HeaderText="城市"></asp:BoundColumn>
					<asp:BoundColumn DataField="BirthDate" HeaderText="出生年月" DataFormatString="{0:D}"></asp:BoundColumn>
				</Columns>
				<PagerStyle HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
			</asp:datagrid>
		</form>
	</body>
</HTML>
