Reverse DataColumn order in a DataTable

  • Thread starter Thread starter Lebrun Thomas
  • Start date Start date
L

Lebrun Thomas

Does anyone know how to do this ?

I've searched for some tips but nothing......



Thanks.
 
you cannot muck with the schema once it is in the datatable. just rearrange
your query or hide some columns if you don't want to view them. what seems
to be the problem or why is this a requirement
 
You could always create a new datatable with the same DataColumns as the
orignal table but in reverse order and then transfer the rows to the new
table.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph


Lebrun Thomas said:
In fact, i've got a dataset (i'm getting it by reading a XML document).
This dataset have some datatable : i retrieve each datatable and i need to
reverse the order of the datacolumns.

Do you know how i can do this ?

Thank you.


LEBRUN Thomas.

Alvin Bruney said:
you cannot muck with the schema once it is in the datatable. just rearrange
your query or hide some columns if you don't want to view them. what seems
to be the problem or why is this a requirement

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Lebrun Thomas said:
Does anyone know how to do this ?

I've searched for some tips but nothing......



Thanks.
 
Back
Top