GridView Control Example
Example Summary and Logic
The goal of the adapter for the GridView control is to create a <table> that is slimmer and better
organized than what is produced without the adapter. You could, of course, rewrite this adapter to
completely eliminate the <table>, replacing it with a variety of <div> tags, etc. However,
a grid, fundamentally, is a table so it seems logical to leave it as such.
The adapted GridView eliminates the use of inline styles. Rows within the <table> are organized
into <thead>, <tfoot> and <tbody> sections. These make it easier to read and understand
the markup. More importantly, these sections make it easy to create CSS rules that govern the appearance
of particular rows within the <table>.
What happens when we run the Math methods over and over again? Here are some raw timing statistics.