CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jun 2007
    Location
    California
    Posts
    136

    [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
  •  





Click Here to Expand Forum to Full Width

Featured