Click here to Skip to main content
12,892,320 members (49,775 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
Please help me to fill a Gridview in windows application , to fill it row by row , Filling by a Dataset which is connected to a database will not work with me , because I have many images files paths , and no need to store it in a database , I have three column , 2 of them are text , and one of them is picture box , so I have to fill the path of the image in that picture box , Please help ,
I appreciate your response
Posted 16-Sep-12 10:02am
Christian Graus 16-Sep-12 20:34pm
I am struggling to see a question here. If you have images in your file system, then you can make your picture box point to them. What is the issue ?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

First Set the Column Type of Image Column of Your DataGridView Control to "Image" Using Edit Column Dialog of Visual Studio. After that It Display Images when you set Image as it's Value
' For Instance I've Use Column1 (Array Index 0) to Display Images.
Me.DataGridView1.Rows(0).Cells(0).Value = System.Drawing.Image.FromFile _

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100