Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: mplordPosted on 2009-05-26 at 10:07:22ID: 24475212
Breaking the problem into two:
* Acquire icon images
* Display images in datagrid
For the first point, if you're using Air not Flex, you can grab the icon image directly from the a File object.
However if you're intending this to be Flex only, the File class is not available and you'll have to create your own store of icons for different file formats.
For the datagrid, I'd create a component container for the image, and use this as an itemrenderer, dynamically switching which image the image control should display based on the extension of the filename in your underlying dataset.