By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,317 Members | 2,372 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,317 IT Pros & Developers. It's quick & easy.

Image in DataGridView does not show!! PLEASE HELP!

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.