|
-
April 19th, 2009, 03:36 PM
#1
[RESOLVED] DataGrid - rendering cell
Hi all,
I am using Visual Studio C#, and I am new to C#
At the moment, I am getting myself familiarize with DataGrid. It seems like I can only put text in the cells of the DataGrid, I am wondering if I can render a image into the DataGrid cell.
I have a program that will list the files in a directory, and I want to display an image on a DataGrid cell according to the file types.
For example, if the file is a mp3 file, then I will put a MP3 icon into the cell; if the file is a .wav file, then I will put a windows media player icon into the cell; if the file is a text file, I will put a text file icon into the cell.
Could anyone tell me if this is possible to implement? and perhaps give me a hint on how this should be implemented.
Any help is appreciated,
Thank you,
kab
Last edited by kabilius; April 27th, 2009 at 09:33 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|