The
ListView
control is used to display the
values from a data source. It
resembles the
GridView control, except that it
displays data by using user-defined
templates instead of row fields.
Creating your own templates gives
you more flexibility in controlling
how the data is displayed.
The
ListView control supports the
following features:
- Support for binding to data
source controls such as
SqlDataSource,
LinqDataSource, and
ObjectDataSource.
- Customizable appearance
through user-defined templates
and styles.
- Built-in sorting
capabilities.
- Built-in update and delete
capabilities.
- Built-in insert
capabilities.
- Support for paging
capabilities by using a
DataPager control.
- Built-in item selection
capabilities.
- Programmatic access to the
ListView
object model to dynamically set
properties, handle events, and
so on.
- Multiple key fields.