<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Grid1iView.aspx.cs" Inherits="Grid1iView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
*** As colunas HireDate e EnrollmentDate foram formatadas pelo ASP.NET Dynamic Data ***<p />
    <form id="form1" runat="server">
    <div>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=SchoolEntities"
            DefaultContainerName="SchoolEntities" EnableFlattening="False" EntitySetName="Person">
        </asp:EntityDataSource>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="PersonID"
            DataSourceID="EntityDataSource1">
            <Columns>
                <asp:DynamicField DataField="PersonID" HeaderText="PersonID" ReadOnly="True" SortExpression="PersonID" />
                <asp:DynamicField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
                <asp:DynamicField DataField="HireDate" HeaderText="HireDate" SortExpression="HireDate" />
                <asp:DynamicField DataField="EnrollmentDate" HeaderText="EnrollmentDate" SortExpression="EnrollmentDate" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
 