If you want to do multiple rows then just think about what you would have to do. You put your code into a loop and loop through each row of your results. You'll probably want to use a StringBuilder and for each row of data you can create a string for your
<table><tbody><tr></tr></tbody></table>
and manually build an html table.