I have a DataTable which looks like below:
TOTAL_CODE COD_NAME AP0001 School AP0002 Hospital AP0003 Airport A
I found all other approaches terribly confusing, so I did this in my view and seems to be working just fine. The zero is the column index for the table. I am using vb.net
@Code For Each row In Model.dataTable.Rows @@row(0) Next End Code