473,809 Members | 2,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image in DataGridView does not show!! PLEASE HELP!

I have problems using DataGridViewIma geColulmn:

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 form
- Add 2 columns and chose DataGridViewIma geColulmn for one of them
- In the Properties of this column, select property Image
- Select Local resource and hit button Import
- Select a bitmap file (16x16)
- The Image from the bitmap is shown in the properties
so far everything is fine...
BUT THE IMAGE NEVER SHOW UP IN THE DataGridView!!!

I tried coding everyting with the same result..
I debugged and found that an Image is loaded in the Image property...
I tested also Express version of C#, 2 colleauges have tried
aswell...nothin g helps

All with the same result...

WHAT IS WRONG???
Aug 7 '07 #1
1 3172
OK, No response so I had to do my work around:

In event RowsAdded I set the cell.Value = myImage so the it works...but
default image had bin better...
Aug 8 '07 #2

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

Similar topics

0
294
by: Daniel | last post by:
when i set the BackgroundImage property in the designer the image still doesnt show in the background of the textbox any other property must be set?
6
2852
by: Markus Dehmann | last post by:
I have a circular dependency between two classes. The FAQ hint about a forward declaration does not help in my case ( How can I create two classes that both know about each other?) Error: "field `foo' has incomplete type" for the following code: #include <iostream> #include <vector>
1
3055
by: Dave | last post by:
Hi all, I was trying to make an image submit button with a rollover and discovered to my suprise that there is no way to access a form element of the "image" type. I tried specifying it by name and also by the elements array with no luck. Even weirder, I can sandwich an image button in between other input types and then write a script diplaying the contents of the elements array and it acts as if the image button does not exist at all!...
3
1468
by: jm | last post by:
What is a "hook" and how does that help me in csharp? I've seen a lot of talk about that from C++ people were were "worried" about that in coming to C#. I am still newer at c# and not that experienced with C++ and the Win API. I have used a lot of VB. Can you give me a starting point on my question? I know I am gonna get it for saying this, but I am familiar with some C/C++ programming.
3
1590
by: Rob Rogers | last post by:
I have an ASP.NET datagrid that contains an image. The image can be one of two images, either "INFO.GIF" or "NOINFO.GIF". The datagrid looks fine when I test it from my local machine in visual studio.net, but when I publish it to the net, the "INFO.GIF" image doesn't show up. I am pulling my hair out on this one. Here is the code from my aspx file. <asp:templateColumn> <itemtemplate>
6
3077
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional) file path to store image resource object contents * @see actual_path */
0
1678
by: shivmuni | last post by:
Hi All, I want integrate help with my application . I drop HelpProvider control on form and assigned TopicId. On F1 key press I am not able to show help. Please help me . Thanks in advance....................... Shiv
0
1495
by: Ryan Liu | last post by:
I found DataGridView in .NET 2.0 has a bug, or maybe I used it in a wrong way, just try to confirm with you guys: I have a checkbox column in it, and a save button on the form try to save changes made by this checkbox column. But the state of last checkbox is always not saved, unless I click somewhere else on the form. //all of these line code does not help!!!!
22
3433
idsanjeev
by: idsanjeev | last post by:
Hi i have some image in slide show on load events. i wants to expand image on mouseover from slide show. thanks
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10378
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9198
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7653
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.