code_junkie

asp.net gridview vs writing innerhtml

Nov 12th, 2011
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Dim tab As New Table
  2. For Each row In DataTable.Rows
  3. Dim tabRow as New TableRow
  4. For Each col In row.Columns
  5. dim tabCol as New TableColumn
  6. tabCol .Text = row(col)
  7. tabRow.Controls.Add(tabCol )
  8. Next
  9. tab.Rows.Add(tabRow)
  10. Next
  11. Page.Controls.Add(tab)
Add Comment
Please, Sign In to add comment