Getting the Data to Page Through

After the DataGrid has been configured to support paging, we need to create a means for the DataGrid to be bound to the appropriate database data. Over the past several hours, we have examined how to accomplish this using the SELECT Data Method Code Builder.

We can use this technique for generating the function that returns the needed data. Start by clicking the Code tab to view the ASP.NET Web page's source code portion. Next drag and drop the SELECT Data Method Code Builder from the Toolbox and onto the source code portion. As you've done numerous times before, connect to the ASPExamples database and construct a query that returns all of the columns from the Customers table.

When you reach the final step of ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.