DataList Control Example

Example Summary and Logic

The unadapted DataList control renders its grid of data into an HTML <table>. An adapter could
replace that table with a set of nested <div> tags but there are some advantages to retaining the
<table>. Therefore, the DataList adapter demonstrated here still renders a <table>. The adapter
groups the rows into <thead>, <tfoot> and <tbody> sections.

This makes it easy to create a set of CSS rules that control the appearance of the table.