sorting columns of DataSet

  • Thread starter Thread starter SK
  • Start date Start date
S

SK

Hy!

Is it possible to sort columns (not rows!) of a dataset (or DataTable)?

I have dataset filled with data and I want to rearange it's columns.

Any ideas would be appreciated!


SK
 
¤ Hy!
¤
¤ Is it possible to sort columns (not rows!) of a dataset (or DataTable)?
¤
¤ I have dataset filled with data and I want to rearange it's columns.
¤
¤ Any ideas would be appreciated!

The order in which the columns are stored in a DataTable is determined by the underlying query or
table order in the database. There is no way to sort them after the DataTable has been populated.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Note: The reply did give some hope, you can change the order of columns in
the query to get what you want.

Regards John.
 
I'm fully aware of this. It was a question of my friend and he asked if it
is possible to change the order of columns on existing table.
I've already told him that it is not possible and that he has to change his
way of filling those datasets (by queries or whatever method he uses).

Thanks for your concerns.
 
Back
Top