The DataList Control

The DataList control is similar to the DataGrid, but allows for more control at a lower level. There is no paging ability either. If you want this capability, you will have to build it yourself. The control works in a similar manner to the DataGrid, and has a similar event model. Where it differs is in the way you design the rows. You have much more control than with the DataGrid. Each row of the control is a separate page document, and you can use any controls you want. There are no columns, each control stands by itself. You can mix text boxes, DropdownLists, labels, and so forth on any row. Not only that, but each row has different mode templates, so for Edit mode you show one template and regular View mode another. Think ...

Get ADO.NET Programming in Visual Basic™ .NET 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.