colorize partial cell background in rowset of listview... based percentage
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: colorize partial cell background in rowset of listview... based percentage

  1. #1
    Join Date
    Jan 2005
    Posts
    65

    colorize partial cell background in rowset of listview... based percentage

    see the image of my listview...
    I want colorize each cells in rowset based the percentage in cells, how to? is possible?

    for example:
    if the percntage is 50% colorize half cell
    if the percentage is 25% colorize 1/4 of cell
    ....

    ecc

    i use this to insert percentage:
    ITM.SubItems(5) = Format((VALORE_3 / VALORE_1 * 100), "#,##0.00")
    Last edited by sal21; May 30th, 2010 at 12:17 PM.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,958

    Re: colorize partial cell background in rowset of listview... based percentage

    Just use a series of characters. X & X & X & X = XXXX
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jan 2005
    Posts
    65

    Re: colorize partial cell background in rowset of listview... based percentage

    Quote Originally Posted by dglienna View Post
    Just use a series of characters. X & X & X & X = XXXX
    but in this mode the series of XXXX overwrite the value present in cell, or not?

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center