I had to create a table from a MS SQL statement. The table was a product listing whose Items could be added to a shopping cart.
The table creation has to occur in the Page Init event. You should read elsewhere as to why this is a requirement.
One the table was created, I needed to step through the rows and read various cell values. Below is the code to do that.
Perhaps I should have added a Add to Cart button on every row. Since I didn't know how to do that I elected to use the single submit button.
I had a difficult time piecing this code together. I wanted to post it so it would be available in a single place. If there are more efficient ways of accomplishing this task, please feel free to comment.