Arek

Arek

  • NA
  • 5
  • 0

DataGridView - How to sort columns by row?

Jan 22 2010 7:22 PM
Hi

I would like to know how can I sort columns in datagridview using vb.net (not rows in the columns).  Please see example below

unsorted:

A    C    B    E    G     F
1    2    5    6    3     5
3    5    1    4    7     2 

sorted (by first row):

A    B    C    E    F     G
1    5    2    6    5     3
3    1    5    4    2     7

Maybe there is a better way to do it than using datagidview, please advise. your help would be much appreciated!

regards
a



Answers (5)