- 1
- 2
- Main Page
- Main Page
- Table of content
- Copyright
- Foreword
- About the Author
- Acknowledgments
- We Want to Hear from You
- Introduction
- Part I: Displaying Data
- Chapter 1. An Introduction to the DataGrid, DataList, and Repeater
- What Are Data Web Controls?
- The DataGrid Web Control
- The DataList Web Control
- The Repeater Control
- Determining What Data Web Control to Use
- Summary
- On the Web
- Chapter 2. Binding Data to the Data Controls
- Specifying a DataSource
- The Ins and Outs of the DataBind() Method
- Building a Class that Implements IEnumerable
- Summary
- On the Web
- Chapter 3. Customizing the HTML Output
- Specifying Display Properties in the DataGrid and DataList
- Customizing Data-Binding Output in Templates
- Summary
- On the Web
- Part II: Assigning Actions to the Data Web Controls
- Chapter 4. Adding Buttons and Hyperlinks to the DataGrid Web Control
- A Quick Review of the DataGrid Column Controls
- Adding Button Columns to the DataGrid Web Control
- Adding HyperLinkColumns to the DataGrid Web Control
- Summary
- On the Web
- Chapter 5. Adding Command Buttons to the Data Web Controls
- Adding a Command Button to a Template
- Command Buttons That Trigger Events Other Than ItemCommand
- Creating Select Command Buttons
- Summary
- On the Web
- Chapter 6. Using External Web Controls to Achieve Effects on the Web Control
- Creating Filtering Buttons
- Doing a Batch Update
- Summary
- On the Web
- Part III: Advanced Features of the DataGrid Web Control
- Chapter 7. Sorting the DataGrid s Data
- Providing Simple Sorting Support in the DataGrid Web Control
- Adding Advanced Sorting Features
- Caching the DataGrid s DataSource at the Page Level
- Summary
- On the Web
- Chapter 8. Providing DataGrid Pagination
- Adding Paging Support to the DataGrid
- Providing a More Elegant Paging Interface
- Paging Through the DataGrid Using Custom Paging
- Paging Through a Cached DataSet
- Summary
- On the Web
- Chapter 9. Editing the DataGrid Web Control
- The DataGrid s Editing Interface
- Editing Data with No Foreign Keys That Can Be Edited in a TextBox
- Using Other Controls to Edit Data
- Editing Data That Has Foreign Key Constraints
- Adding Validation Controls to the Editing Interface
- Summary
- On the Web
- Chapter 10. Putting It All Together: A Real-World Example
- An Overview on Providing Sorting, Paging, and Data Modification Features for a Single DataGrid
- Providing Sorting and Pagination Support in a Single DataGrid
- Adding Data Modification Support to a Sortable and Pageable DataGrid
- The Complete Source Code for a Multi-Functional DataGrid
- Summary
- On the Web
- Part IV: Miscellaneous Data Control Topics
- Chapter 11. Altering the Data Before It s Rendered
- Using Custom Functions and Data-Binding Syntax to Modify the Display of Data Based on Its Value
- Using the ItemDataBound Event to Modify the Display of Data Based on Its Value
- 1
- 2





