473,396 Members | 1,814 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,396 software developers and data experts.

Image in DataGridView does not show!! PLEASE HELP!

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 form
- Add 2 columns and chose DataGridViewImageColulmn 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...nothing helps

All with the same result...

WHAT IS WRONG???
Aug 7 '07 #1
1 3143
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
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
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:...
1
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...
3
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...
3
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...
6
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)...
0
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...
0
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...
22
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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...
0
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,...

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.