Viewing A Paged Data Set With The New Grid  View Server Control:

<%
@ Page Language="VB" %> <script runat="server"> </script> <html xmlns=http://www.w3.org/1999/xhtml> <head>Data Grid View Demo</head> <body> <form runat="server"> <asp:GridView ID="GridView1" runat="server" AllowPaging="true" DataSourceId="Sqldatasource1"></asp:GridView> <asp:SqlDataSource ID="Sqldatasource1" runat="server" SelectCommand="SELECT * FROM HumanResources.Employee" ConnectionString="<%$ ConnectionStrings:AdventureWorksConnectionString %>" /> </form> </body> </html>

Last edited Sep 17, 2010 at 5:15 AM by johnnykobeis, version 1

Comments

No comments yet.