swap listview columns programmatically?

  • Thread starter Thread starter Rich Raffenetti
  • Start date Start date
R

Rich Raffenetti

I want to display the subitems column to the left side of the items column
in a details listview.

It's easy to drag the columns to swap their display in the listview window.
Is it possible to do that in the program?
 
Thanks for your response.

I realized that I can change the column order by changing the display index
in the columnheader collection editor. I only need to change the order at
load time, so I had no need to change it under user/program control later.
So I can swap the columns in the design view.

Moreover, under program control, one can even do as follows:
lvwWin.columns(0).displayindex=1
lvwWin.columns(1).displayindex=0
 
Back
Top