CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    76

    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
    Fox Lake, IL
    Posts
    15,007

    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
    76

    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
  •  





Click Here to Expand Forum to Full Width

Featured