Using the ListView
Control
You can think of the ListView
control as a super-flexible GridView
control. Like a GridView
control, the ListView
control can be used to display, edit, delete, select, page through, and sort database data. However, unlike the GridView
, the ListView
control is entirely template-driven. Furthermore, unlike the GridView
control, you can use the ListView
control to insert new data into a database.
You also can think of the ListView
control as a replacement for the DataList
control. Like a DataList
control, the ListView
control can be used to display database records in multiple columns. For example, you can use the ListView
control to render a photo gallery.
Finally, you can think of the ListView
control as a super-fancy ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.