Results 1 to 4 of 4

Thread: Displaying an image

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Displaying an image

    I want to display an image in a datagridview,but i have no idea of doing the same.Is there any code bank submission regarding this topic or some ideas how to go for this?
    please help
    thank you

  2. #2
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    Re: Displaying an image

    There is a DataGridViewImageCell object, I'm sure it has pretty much the same properties as a picturebox.

    Check that out and what you can come up with.

    Justin
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Posts
    904

    Re: Displaying an image

    can you help me with some sample code on which i can work on with?
    Is it a hard task in windows forms to display an image in the dgv?

  4. #4
    Frenzied Member stateofidleness's Avatar
    Join Date
    Jan 2009
    Posts
    1,780

    Re: Displaying an image

    You should be able to do it without writing a single line of code. Is this a DataGridView you dragged to your form or is it created at runtime?

    If you dragged it to your form, you can look at the Colmuns Collection in the properties list and set one of the columns to a DataGridViewImageCell (as Monk mentioned). Then you can specify the Image you want to display in each cell at Design time or run time. You'll need to put your images in an ImageList.

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