So if you do a query into a datatable, something like
SELECT * FROM MyTable
you will get basically a collection of rows with same amount of columns on each row. If you now loop through the Rows and Columns collections and add the values to an array of textbox's, wouldn't that work? Something like (pseudo):
Fill a datatable with a query
foreach datatable.row {
foreach datatable.column {
textboxlist.add(new textbox() {Text = Row.Column.Value })
}
}
Place the textboxes to the form