473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to put an image in the DataGridView?

Hello all
I have a DGV and I need that an icon (image) apears depending the Status
field.
The status field is 0, 1 or 2 and I need to put three different little
pictures on it.

Thanks for your advices.
henpat
Dec 11 '06 #1
2 2242
Windows forms or web forms? VB2003 or VB2005?

Robin S.
----------------------
"henpat" <he******@hotmial.comwrote in message
news:uD**************@TK2MSFTNGP03.phx.gbl...
Hello all
I have a DGV and I need that an icon (image) apears depending the
Status field.
The status field is 0, 1 or 2 and I need to put three different little
pictures on it.

Thanks for your advices.
henpat

Dec 11 '06 #2
henpat wrote:
Hello all
I have a DGV and I need that an icon (image) apears depending the Status
field.
The status field is 0, 1 or 2 and I need to put three different little
pictures on it.

Thanks for your advices.
henpat
Look at adding a DataGridViewImageColumn to the DGV.

B.

Dec 12 '06 #3

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

Similar topics

0
by: Julia | last post by:
Hi, Is it possible to set a different image for the sort Glyph in DataGridView? Thanks in advance.
2
by: Tommy | last post by:
Hi all, I use DataGridView in my form and add image column and 2 textbox column, and I want to change image column's image on runtime. But there is no any example on this function. What can I do ?...
0
by: None | last post by:
Hi, I'm using DataGridView in my Windows Forms project. I need to know how we can insert an image into the specified cell . I tried with the following code.
2
by: Marc Solé | last post by:
Hello, I want to insert an image to a specific column of a dataGridWiew. I explain what I'm doing: - I define the ColumnType as a DataGridViewImageColumn. - I select the image (an icon of...
3
by: David Veeneman | last post by:
I'm trying to set images in a bound DataGridView image column. My enum has three possible values, and I have an image that I want to show for each value: EnumValue.OK --GreenLight.gif...
0
by: digitalox | last post by:
Hello all, Is there an easy way to save the datagridview (or control in general) to an image file, using GDI+ or something? Or some 3rd party control that does? Thanks, Scott
1
by: Claes Wedin | last post by:
I have problems using DataGridViewImageColulmn: The Image does not show (only a red X is shown). I tried this: - Create New WindowsForms app - In the Form: Drag a DataGridView control to the...
0
by: Simonsson | last post by:
I'm trying (using C#) to put an image (Icon or Bitmap maybe) in the column header cell of a DataGridView. I have no problems putting images in other cells. I do that like this: myDataRow =...
0
by: shahoo | last post by:
Hi, I don't know if here is the right place to post this message or not because it is related to both C# and ADO.NET. BTW: I am beginner to C# and I have been studing the book Pro ADO.NET 2.0...
1
by: Evolution445 | last post by:
Hi, I have a small servermanager where it loads up all players that are currently playing a game. The players are divided in blue and red team. I want to have a small 8x5 (red/blue) image...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.