dim dt as new datatable 'here we add the columns col1,col2,...col5 dim x as integer = dt.columns.count for i as integer = 0 to mydatatable.columns.count -1 dt.columns(i).setordinal(x-1-i) next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)