The following example shows how you can format the size column to display bytes or kilobytes in an Adobe AIR FileSystemDataGrid control by setting the sizeDisplayMode property to one of the static constants in the FileSystemSizeDisplayMode class.

Full code after the jump.





    
        
            
                
            
        
    

    


You can also set the sizeDisplayMode property using ActionScript, as seen in the following example:





    
        

    
        
            
                
            
        
    

    


Due to popular demand, here is the “same” example in a more ActionScript friendly format:





    
        


Leave a Reply

Your email address will not be published.