Solved

Insert picture to datagid cell

Posted on 2009-04-14
2
197 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 69

Accepted Solution

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

Author Comment

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now