Docsity

Using the ListView Control for Data Display and Manipulation: A Comprehensive Guide, Slides of Computer Programming

Partial preview of the text

Download Using the ListView Control for Data Display and Manipulation: A Comprehensive Guide and more Slides Computer Programming in PDF only on Docsity!

Using the The ListView

Control to work with

Data

The ListView Control

(Overview)

 Like the GridView control  It supports paging  It supports record update and delete functions  It can display data in a tabular form  Unlike the GridView control  It supports record insert functions  It has no ‘predefined’ layout  It can display data in other ways too

Configuring the ListView

 Of course, everything can be done programmatically  The Configure ListView tool applies various styles to make life easier or to get you started  The layout controls how the records appear  The style defines various visual styles

Templates (Introduction)

 The ListView operates using a list of predefined templates similar to the GridView  However, these templates do not perform any formatting  Rows are rendered based on templates

Templates (2)

 There are other templates for grouping (tiled layout)

Events

 These are similar to the GridViewItemInserting / ItemInsertedItemDeleting / ItemDeletedItemCommand fires when a command executes  ItemCreated fires when a row is created

The Mechanics (2)