Murach's ASP.NET 4 Web Programming
with VB 2010

How to use the ListView and DataPager controls

This chapter shows you how to use ASP.NET's ListView and DataPager controls to work with data in your web applications. The ListView control is similar to the GridView control covered in chapter 14, but it has features that make it much more versatile. One of those features is that it provides for paging using the DataPager control.

Chapter 16 How to use the ListView and DataPager controls
How to use the ListView control 524
An introduction to the ListView control 524
How to configure a ListView control 526
How to work with the Layout template 528
How to work with the Item template 530
How to provide for sorting 532
How to provide for paging 534
How to customize paging 536
A list application that uses a ListView control 538
The Product List application 538
The aspx file 540
How to group ListView data 544
How to define the templates for a group 544
A Product List application that uses groups 546
The aspx file for the grouped Product List application 546
How to update ListView data 550
How to use buttons to perform update operations 550
How to work with the EditItem and InsertItem templates 552
How to use events raised by the ListView control 552
A maintenance application that uses a ListView control 554
The Category Maintenance application 554
The aspx file 556
The code-behind file 556




Murach's ASP.NET 4 with VB 2010

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.