Skip to main content
  • 236 Accesses

Summary

In this chapter, you learned how to bind the query results to a table-based Web control such as a GridView, DataList, or Repeater. Unless you tell it otherwise, the GridView will present the results in a preformatted grid, one column per table cell; the DataList and Repeater, on the other hand, must be given a template for each row of information to be displayed.

You learned that you can customize the GridView quite heavily, even when it auto-generates a grid to display query results. You can use SQL to make the data more readable, use styles to make it more attractive, and implement simple sorting and paging functions to improve the way that users can view the results.

In the next chapter, you’ll finish your look at handling the data from a query by exposing it as read-write data. You’ll also learn how to send the changes made to that data back to the database.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Damien Foggon

About this chapter

Cite this chapter

(2006). Table Binding. In: Beginning ASP.NET 2.0 Databases. Apress. https://doi.org/10.1007/978-1-4302-0146-5_7

Download citation

Publish with us

Policies and ethics