<%@ Page language="c#" Codebehind="ValidatorDataGrid.aspx.cs" AutoEventWireup="false" Inherits="ValidatorDataGrid.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body style="FONT: 10.5pt 宋体" ms_positioning="GridLayout">
		<form id="Form1" runat="server">
			<asp:datagrid id="MyDataGrid" style="Z-INDEX: 101; LEFT: 144px; POSITION: absolute; TOP: 112px" runat="server" Font-Names="宋体" Height="176px" Font-Name="宋体" Font-Size="8pt" HeaderStyle-BackColor="#aaaadd" BorderColor="Black" BorderWidth="1px" CellPadding="3" Width="576px" AutoGenerateColumns="False">
				<HeaderStyle BackColor="#AAAADD"></HeaderStyle>
				<Columns>
					<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="编辑列" CancelText="取消" EditText="编辑">
						<HeaderStyle Font-Size="Small" Wrap="False"></HeaderStyle>
						<ItemStyle Font-Size="X-Small" Font-Bold="True" Wrap="False"></ItemStyle>
					</asp:EditCommandColumn>
					<asp:BoundColumn DataField="Item" ReadOnly="True" HeaderText="项">
						<HeaderStyle Font-Size="Small"></HeaderStyle>
						<ItemStyle Font-Size="X-Small" Font-Bold="True"></ItemStyle>
					</asp:BoundColumn>
					<asp:TemplateColumn HeaderText="数量">
						<HeaderStyle Font-Size="Small"></HeaderStyle>
						<ItemStyle Font-Size="X-Small" Font-Bold="True"></ItemStyle>
						<ItemTemplate>
							<asp:Label id=Label2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Qty") %>'>
							</asp:Label>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:TextBox id="txtBox" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Qty") %>'>
							</asp:TextBox>
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Price" HeaderText="价格">
						<HeaderStyle Font-Size="Small"></HeaderStyle>
						<ItemStyle Font-Size="X-Small" Font-Bold="True"></ItemStyle>
					</asp:BoundColumn>
				</Columns>
			</asp:datagrid><asp:label id="Label1" style="Z-INDEX: 102; LEFT: 232px; POSITION: absolute; TOP: 56px" runat="server" Font-Size="Large" Font-Bold="True">用验证控件验证DataGrid中的编辑列</asp:label></form>
	</body>
</HTML>
