ColumnHeader.ImageIndex broken in Vista?

G

Gregory Gadow

I have a VS 2005 application with a ListView control in Details view. I
have set it up so that clicking on a column header will sort the data in
the control based on that column and toggle either ascending or
descending. An image shows which column is sorted and in what direction.
This all works fine on an XP machine.

On a Vista machine, however, the property values change correctly but
the image in the column header is never cleared. If the user clicks on a
different column, the image is correctly added to the new column but
remains displayed in the previous column even though the ImageKey
property of the previous column now returns an empty string. Again, this
happens only on a Vista machine.

Is there a fix for this that does not involve shelling out several
thousands of dollars to get VS 2008?
 
G

Gregory Gadow

Gregory said:
I have a VS 2005 application with a ListView control in Details view. I
have set it up so that clicking on a column header will sort the data in
the control based on that column and toggle either ascending or
descending. An image shows which column is sorted and in what direction.
This all works fine on an XP machine.

On a Vista machine, however, the property values change correctly but
the image in the column header is never cleared. If the user clicks on a
different column, the image is correctly added to the new column but
remains displayed in the previous column even though the ImageKey
property of the previous column now returns an empty string. Again, this
happens only on a Vista machine.

Is there a fix for this that does not involve shelling out several
thousands of dollars to get VS 2008?

Does anyone have any suggestions on how to fix this?
 

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