Listview...how to conditionally replace a value with a string
        Posted  
        
            by GaryAmundson
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by GaryAmundson
        
        
        
        Published on 2010-05-24T14:21:21Z
        Indexed on 
            2010/05/24
            14:31 UTC
        
        
        Read the original article
        Hit count: 253
        
listview
|conditional-formatting
Hi, my app presents a listview, from a database cursor and XML, that needs to replace the values in a column with various words based on the integer value contained in the cursor. For example, if the value is -1, replace it with the word "Invalid", but if the value is >= 0 then just display the value.
I was under the impression this could magically be done via XML... TIA.
© Stack Overflow or respective owner