I have created an ASP.NET version of my script to document a database design using queries of the information_schema.tables. This required dynamically creating an unknown number of datagrid controls, one for each table that would be found. To do that I just loop through the recordset of tables and add a datagrid control to the page on each loop. My code also had to create the bound columns and specify the datagrid header style.
I like to have a print out of the database design so I won’t need to keep opening the database to look up a field name.