473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ColumnHeader.ImageIndex broken in Vista?

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?
--
Gregory Gadow

Nov 29 '07 #1
1 1496
Gregory Gadow wrote:
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?
--
Gregory Gadow
Does anyone have any suggestions on how to fix this?
--
Gregory Gadow
Dec 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alan Seunarayan | last post by:
Hello, I have a number of ColumnHeaders that are 'hidden' (width set to zero). However, it is still possible to size them. The reason why they are hidden is to give the illusion that they do...
0
by: Frank Oquendo | last post by:
My TreeView has an ImageList associated with it. The ImageIndex of the TreeView itself is set to -1. As I add nodes to the TreeView, I set their ImageIndex to -1 or a handful of other values. The...
1
by: joannelai | last post by:
Hi all, In my project I have a ListView and a ColumnClick event is added to sort the clicked column. I want to have a Context Menu when the ColumnHeader is right clicked, but I find no way to...
1
by: db | last post by:
Hello, I am having some problems with tree nodes. This is what's happening: 1) I create the node assign imageindex X 2) I change the imageindex of the Treenode to Y 3) TreeNode's icon looks...
1
by: Fabian_20 | last post by:
Hello everybody, sry for the bad title :). I created an extended ListView with an extended ColumnHeader. If i add a new ColumnHeader through the designer, it appears on the left side of the...
25
by: Norman Diamond | last post by:
I think the current version of _vsnwprintf_s is broken, in ordinary Windows. I'm not completely sure yet but it looks like this breakage is worse than previously known Windows CE breakage of...
1
by: szuccaro | last post by:
I am reading an excel file into a datagridview and trying to perform some function based on the column header that is clicked. I currently can produce an event to occur (msgbox) but, I need to get...
3
by: =?Utf-8?B?WVhR?= | last post by:
I have set the names of each column on design-time, but the code below could not get their names, why? thank you. //////////////////////////////////////////////////////////////////////// For...
1
by: Andi | last post by:
Hi, I have added a soring icon to a ListView column header when the user clicks on it. I want to remove this icon, when the user clicks on another column by setting the image index to -1. That...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.