Image in DataGridView does not show!! PLEASE HELP!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Claes Wedin

    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???


  • Claes Wedin

    #2
    Re: Image in DataGridView does not show!! PLEASE HELP!

    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...


    Comment

    Working...