Results 1 to 2 of 2

Thread: Can this be done ??? [RESOLVED !!]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    113

    Can this be done ??? [RESOLVED !!]

    I would like to be able to set the backcolor of a column in a listview control. But... can this be done ? I know how to do the backcolor for a row but not a column.

    I hope someone can help....


    Thanks



    Here's the answer:

    1st - Set the property "UseItemStyleforSubItems" to False


    Then you can specify the color you wish for the column.

    eg. lvitem.SubItems(9).BackColor = System.Drawing.Color.Aqua
    Last edited by kerv21; Jan 21st, 2003 at 02:45 PM.

  2. #2
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    kerv21

    This is a candidate for the VBCodebook that RealNickyDude is compiling. Would you mind sending it to him at http://www.madladdesigns.co.uk/vbcodebook/index.htm
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width