<%@ Page Language="C#" %>

<html>
<head id="Head1" runat="server">
    <title>Exemplo com paginação de registros</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ProviderName="System.Data.SqlClient"
            DataSourceMode="DataSet" ConnectionString="<%$ ConnectionStrings:nwind%>" SelectCommand="SELECT CustomerID, CompanyName FROM Customers">
        </asp:SqlDataSource>
        <asp:GridView ID="GridView1" PagerSettings-Mode="Numeric" PagerSettings-PageButtonCount="10"
            PagerSettings-Position="TopAndBottom" EnableSortingAndPagingCallbacks="true"
            AllowPaging="true" PageSize="5" DataSourceID="SqlDataSource1" runat="server"
            CellPadding="4" ForeColor="#333333" GridLines="None">
        </asp:GridView>
    </form>
</body>
</html>
