swap listview columns programmatically?

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?
 
R

Rich Raffenetti

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top