I think i didn't explain it right.
I want to get the order of the column headers, not the data itself in te
listview...
If I take windows explorer as an example,
you have the columns, filename, filetype, filesize, and so on and so on....
But, let's say for whatever reason I want to see the filesize as the first
column...
So I drag te column to the left and it is moved there. So now you've got:
filsize, filename, filetype, ..., ...
Sorting data in the columns by whatever column, I've already worked out...
"Cor Ligthert" <no**********@planet.nl> schreef in bericht
news:Od**************@TK2MSFTNGP10.phx.gbl...
Hi JM,
You cannot sort columnS, only the first column can be sorted, for more
columns you have to make your own class using Icomparer.
http://msdn.microsoft.com/library/de...ssorttopic.asp
With this is should in my idea also be possible to know what is the sort
order of a column, however I think that that is a lot of work.
I hope this helps?
Cor
When you set the Listview's property AllowColumnReorder to True, users
can reorder the columns (quite logical I guess)... Bus how on earth can I obtain from code what order these columns are in??? I want to save these
settings (to the registry or to a file) so that the program can recall which
order of columns the user prefers....
Thanks
J Mous