Finally, the List View lacks the usual dozens of style properties that characterize many ASP.NET controls, but this doesn’t mean you can’t add any style to the output.Data source components offer an alternative to the classic ASP.NET binding model based on a programmatic and explicit binding between enumerable data and the Data Source property of data-bound controls. NET 2.0, all data-bound controls support data source components for fetching, but only a few of them are designed to use data source components for other operations such as insertion, deletion, and update. NET data binding model underwent a significant refresh with version 2.0, mostly due to the introduction of data source controls and data binding expressions. NET with a declarative model for data fetching and data manipulation.Data source components force layering and promote a neater separation between presentation and data access, even in relatively simple projects.The output of the List View control can be styled at leisure but only using CSS style sheets directly on HTML elements and without the intermediation of ASP. As mentioned, the List View control doesn’t force you to stick to a predefined layout – be it tabular, grid, multi-column.Details View control is a data-bound control that renders a single record at a time.
In this article, I’ll provide a developer’s perspective of the control, and show in action both its obvious and less obvious capabilities and features.The primary aspect of the List View control is that it allows you to take full control of the user interface via templates and properties.As a developer, you can control any HTML markup that the control outputs, without being bound to any predefined schema such as a form or a grid view. NET, the List View is designed to leverage an external component for paging and sorting.This component is the Data Pager control added in ASP. The List View is currently the only control aware of the data pager standard interface.
For example, the Grid View control is just a smarter version of the Data Grid control that, among other little things, fully supports the new data binding model. NET, for iterating data templates for all the records in a data source. NET provides Repeater and Data List controls, but they only support data source components for fetching.
Designed to render tabular data, the Grid View is partnered by Details View and Form View that render out the content of a single record at a time. NET 3.5, the family of “view” data-bound controls has a new addition – the List View control. The List View control can be considered as an enhanced version of the Data List control that fully supports data source components.