Results 1 to 5 of 5

Thread: [RESOLVED] insert image to datagridview.

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Resolved [RESOLVED] insert image to datagridview.

    how can i insert image to datagridview like this :


  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: insert image to datagridview.

    You would add a DataGridViewImageColumn to your grid and assign Image objects to the Value properties of the cells.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Re: insert image to datagridview.

    Quote Originally Posted by jmcilhinney View Post
    You would add a DataGridViewImageColumn to your grid and assign Image objects to the Value properties of the cells.

    Thanks it works.

  4. #4
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: insert image to datagridview.

    Hi,

    You can use the DatagridviewImageColumn Class for that, look here.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  5. #5

    Thread Starter
    Member
    Join Date
    May 2009
    Location
    VietNam
    Posts
    56

    Re: insert image to datagridview.

    Quote Originally Posted by sparrow1 View Post
    Hi,

    You can use the DatagridviewImageColumn Class for that, look here.
    Thanks for it.

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