Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listview with checkbox in first column and sort arrows in column head

Status
Not open for further replies.

Vonny232

Programmer
Nov 27, 2006
1
IE
Hi

I have been trying to solve this annoying problem for a day now, I dont want to waste any more time if what I need is not realistically acheivable.

I have a listview, the first column contains a checkbox with no text.

I have linked an imagelist to the listview (at runtime) to give me access to up and down arrow glyphs for the column sort header.

This works but as soon as I link the imagelist to the listview, the checkbox column also loads the first glyph from the list (as well as the column header).

I can remove this image from the checkbox column by setting the imageindex to -1 BUT even with it removed, the checkbox is still offset inside the list item, this means that a small part of the checkbox is missing (pushed upwards slightly).

Can I remove this behaviour of the checkbox column item, so only the column headers can access the imagelist?

Dan

Can I remove any ability for tyhe checkbox column to hold the image
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top