![]() ![]() Like the GridView, the DataList renders as an HTML, but allows for multiple data source records to be displayed per table row. The DataList and Repeater controls render their content using templates rather than BoundFields, CheckBoxFields, ButtonFields, and so on. To provide a greater degree of customization in the appearance and rendered markup when displaying multiple records, ASP.NET 2.0 offers the DataList and Repeater controls (both of which were also available in ASP.NET version 1.x). Moreover, the markup responsible for the GridView s structure is fixed it includes an HTML with a table row ( ) for each record and a table cell ( ) for each field. While the GridView makes it a snap to display, page through, sort, edit, and delete data, its appearance is a bit boxy. The GridView renders a row for each record in the data source, displaying the record s data fields in columns. In all of the examples throughout the past 28 tutorials, if we needed to display multiple records from a data source we turned to the GridView control. Starting with this tutorial, we look at building common reporting patterns with the DataList and Repeater controls, starting with the basics of displaying data with these controls. ![]() In the preceding tutorials we have used the GridView control to display data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |