Solved

Insert picture to datagid cell

Posted on 2009-04-14
2
205 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 500 total points
ID: 24143966
0
 
LVL 1

Author Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net Open Folder in Windows Explorer 3 56
Call windows 10 virtual keyboard from windows forms app 2 52
Problem to line 23 54
Code enhancement 4 22
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 …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

829 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