?
Solved

Insert picture to datagid cell

Posted on 2009-04-14
2
Medium Priority
?
220 Views
Last Modified: 2013-12-26
Hello can  someone help me to add  images  to a datagrid cell i am using vb 2005 linked from  ms access 2003.Also  bellow is code i make but i think  is wrong thnks
thnks
Private Sub CategoriesDataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles CategoriesDataGridView.CellContentClick
        Dim dgImage As New DataGridViewImageColumn
        dgImage.Image = Drawing.Image.FromFile("D:\")
        dgImage.ReadOnly = True
        dgImage.ImageLayout = DataGridViewImageCellLayout.Normal
        CategoriesDataGridView.Columns.Add(dgImage)
        CategoriesDataGridView.DataSource = Db1DataSet

Open in new window

0
Comment
Question by:demoniumz
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1500 total points
ID: 24143966
0
 
LVL 1

Author Comment

by:demoniumz
ID: 24145345
datagrid view not datagrid sorry i misspelit
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question