473,498 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add image to datagrid

Hi NG,

how can I add an image into a cell of a DataGrid in WindowsForms?

Thank you

Rudi
Nov 16 '05 #1
4 1696
Rudi,

In order to do this, you will have to create a class that derives from
the DataGridColumnStyle class and have it paint an image based on the
contents of the column it is bound to.

You might be able to find an implementation of this somewhere already,
as it is a pretty common request.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rudolf Ball" <do**********@gmx.net> wrote in message
news:uC****************@TK2MSFTNGP10.phx.gbl...
Hi NG,

how can I add an image into a cell of a DataGrid in WindowsForms?

Thank you

Rudi

Nov 16 '05 #2
Hi

I dont know exactly, what do you want to do

You can find very easy for this problem in MSD

Thanks
_________________________
Have a Good Day
_________________________
Mail :le*****@korea.co
Mail2:Jh***********@oecd.or
MSN :le*****@Korea.co
Tel. :33-1-7142-640
_________________________
http://leehack.sarang.net
Nov 16 '05 #3
Hi Lee,

I just want to add a bitmap to a specific cell within a DataGrid
(WindowsForms). How can I do that?

Thank you

Rudi
"LeeHACK[Jhin-Seok.Lee]" <le*****@korea.com.korea> wrote in message
news:B2**********************************@microsof t.com...
Hi,

I dont know exactly, what do you want to do.

You can find very easy for this problem in MSDN

Thanks,
__________________________
Have a Good Day~
__________________________
Mail :le*****@korea.com
Mail2:Jh***********@oecd.org
MSN :le*****@Korea.com
Tel. :33-1-7142-6401
__________________________
http://leehack.sarang.net

Nov 16 '05 #4
See my Post 'Datagrid and Image Data' 4/13/200
It may hel

Regards....Keith
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
3038
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do...
13
2329
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
1
2203
by: ltt19 | last post by:
Hi everyone! I want to do da Image gallery using just the datagrid, this one will dilpays only images, no text, that means that it will have about 4 Collumns that will displays just images from...
13
1437
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
13
16691
by: arashkk | last post by:
I convert a bitmap from Format24bppRgb to Format8bppIndexed this way: Bitmap bmp = new Bitmap("c:\\flower.bmp"); BitmapData bmData = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height),...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.