Windows Develop Bookmark and Share   
 index > Windows Forms General > Load Image into a datagridview cell!
 

Load Image into a datagridview cell!

Hallo guys

I have a table of pointers pointing to different images.

I want to selectively load a image into a cell of a datagridview on an event(like mouse click on the cell).

I am using visual studio .NET express edition 2005 and C++.

Any suggestions how i can do it?

Cheers!

doener  Thursday, January 04, 2007 3:59 PM

i know a little about c++,there are some vb.net and c# examples

i hope following links will be useful to u.

http://msdn2.microsoft.com/en-us/library/2ab8kd75.aspx

http://msdn2.microsoft.com/en-us/library/x0tz73t0.aspx

Gavin Jin - MSFT  Friday, January 05, 2007 7:39 AM

The following code example shows displaying images in Cells of the Windows Forms DataGridView control and hope that can help you:

Sub CreateGraphicsColumn()

Dim treeIcon As New Icon(Me.GetType(), "tree.ico")

Dim iconColumn As New DataGridViewImageColumn()

With iconColumn

"Tree"

"Nice tree"

End With

Sub

Gavin Jin - MSFT  Friday, January 05, 2007 7:41 AM

You can use google to search for other answers

Custom Search

More Threads

• How to make a Windows form appear on top of FullScreen Direct3D9/10?
• Labels Flicker when BackColor is set to Transparent [:S]
• C# embedding java in panel
• Creating custom scrollbar, userpaint.
• Checking for file as boolean
• Unique Random Number Generator
• Disable window
• how to know an actual size of a character(in pixel) at a specified font ?
• Several startup forms??
• I have doubt aboubt Binding Comboboxes in a Tabcontrol