change the order of column in a datatable

  • Thread starter Thread starter victor
  • Start date Start date
V

victor

hi guys
now i have a data table with 3 columns. now i want to change the order in
the datatable. like make the column 2 become column 3. and column 3 become
column 2. i want to achieve with all data remains the same..
there is now way i can do this in query.

is there a way to do this?
cheers
victor
 
If you are using compactframework then should not try this :) performance
will go for a toss,

Can you let me know a more abt the req

Anubhav Mishra
 
Why? I'm fairly sure that what you are trying to do can and should be
achieved by other means
 
As Alex said: "why" ?

If you want to display the columns using a datagrid and display them in a
different order you can simply use a TableStyle to change the way the data is
displayed.

You can also requery the data and do "select col1,col3,col2 from ... "
instead of "select col1,col2,col3 from ... "

Cheers,
Sitar.
___
 
Back
Top